has been blocked from loading by Cross-Origin Resource Sharing policy: No 'Access-Control-Allow-Origin'

学无止境✅  2015-11-16
0

has been blocked from loading by Cross-Origin Resource Sharing policy: No 'Access-Control-Allow-Origin' header is present on the requested resource

造成这个原因 是因为 字体资源跨域问题


解决跨域问题

如果是IIS服务器,在http响应标头 加入 Access-Control-Allow-Origin  值是*号  就是所有的域名来源都可以访问

Access-Control-Allow-Origin:*

加入完后,不需要重启就生效了.




游客  现在