首页 学习教程网站建设正文

fontawesome-webfont.woff2 net::ERR_ABORTED

元之本 网站建设 2019-03-17 23:38:47 1916 0

问题:

 fontawesome-webfont.woff2 net::ERR_ABORTED  第1张fontawesome-webfont.woff2 net::ERR_ABORTED  第2张

location ~* \.(eot|otf|ttf|woff|woff2|svg)$ {
add_header Access-Control-Allow-Origin *;
}
 
AddType application/x-font-woff woff
AddType application/x-font-woff2 woff2
fontawesome-webfont.woff2 net::ERR_ABORTED  第3张fontawesome-webfont.woff2 net::ERR_ABORTED  第2张
location ~* \.(eot|otf|ttf|woff|woff2|svg)$ {
add_header Access-Control-Allow-Origin *;
}
 
AddType application/x-font-woff woff
AddType application/x-font-woff2 woff2
fontawesome-webfont.woff2 net::ERR_ABORTED  第2张

IIS默认也是不支持的,可以添加MIME类型来解决:

.woff2 application/x-font-woff
打赏 支付宝打赏 微信打赏

声明:本站所有文章,如无特殊说明或标注,均为本站原创发布。任何个人或组织,在未征得本站同意时,禁止复制、盗用、采集、发布本站内容到任何网站、书籍等各类媒体平台。如若本站内容侵犯了原著者的合法权益,可联系我们进行处理。

本文链接:http://www.yuyubebe.cn/2019/03/23/

发表评论

评论列表(0人评论 , 1916人围观)
☹还没有评论,来说两句吧...
«    2023年4月    »
12
3456789
10111213141516
17181920212223
24252627282930
宝塔服务器面板,一键全能部署及管理,送你3188元礼包,点我领取