我正在尝试为所有子域,端口和协议启用CORS.
例如,我希望能够从http://sub.mywebsite.com:8080/运行XHR请求到https://www.mywebsite.com/*
通常情况下,我想启用匹配(并限于)的来源请求:
//*.mywebsite.com:*/*
今天我将Font Awesome软件包更新到4.3.0并注意到添加了woff2字体.该文件在CSS中链接,因此我需要配置nginx以正确地提供woff2文件.
目前我在nginx配置字体中有这个块:
location ~* \.(otf|eot|woff|ttf)$ {
types {font/opentype otf;}
types {application/vnd.ms-fontobject eot;}
types {font/truetype ttf;}
types {application/font-woff woff;}
}
Run Code Online (Sandbox Code Playgroud)
什么是适用于woff2字体的mime类型?