我做了一个项目 图片 css js 的引用不受限制. 但是字体是安装的font-awe, 最后打包到线上环境, 说字体存在跨域问题.
听说, 只需要在神马头部加一行神马代码?不明白...
大神们,有懂的吗?
还有,网站里面的链接都用fillder代理了, 代理算是跨域吗?
Access to Font at 'http://s.happymmall.com/mmall-fe/dist/resourse/fontawesome-webfont.woff2' from origin 'http://happymmall.com' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://happymmall.com' is therefore not allowed access.
看这里看这里 前端跨域大全 ,里面有讲到为什么字体文件会报跨域