Font-Awesome在浏览器控制台中给我一个错误

时间:2015-03-28 00:10:46

标签: css nginx fonts font-awesome

我收到这3个错误

GET http://www.desktop.just4bettors.mobi/fonts/fontawesome-webfont.woff2?v=4.3.0 

GET http://www.desktop.just4bettors.mobi/fonts/fontawesome-webfont.woff?v=4.3.0 

GET http://www.desktop.just4bettors.mobi/fonts/fontawesome-webfont.ttf?v=4.3.0 

我正在为Content-Security-Policy配置我的NGINX,之前一切正常,Font-Awesome正确加载,直到我设置Content-Security-Policy,这就是我在该文件中的内容

add_header Content-Security-Policy "style-src 'self' 'unsafe-inline'
https://fonts.googleapis.com
https://fonts.gstatic.com
https://themes.googleusercontent.com
https://assets.zendesk.com;
font-src 'self' https://themes.googleusercontent.com
https://fonts.gstatic.com;";

0 个答案:

没有答案