nginx跨域解决方案
nginx跨域解决方案
Access to Font at 'http://47.104.86.187/yinjiatoupiao2/iconfont/iconfont.woff' from origin 'http://wxserver.knowway.cn' has been blocke
改nginx.conf
<pre>
http
{
.....
add_header Access-Control-Allow-Origin *;
add_header Access-Control-Allow-Headers X-Requested-With;
add_header Access-Control-Allow-Methods GET,POST,OPTIONS;
.....
</pre>
如果遇到什么不懂的地方直接关注公众号留言(本文版权归作者和博客园共有,欢迎转载,但未经作者同意必须在文章页面给出原文连接,否则保留追究法律责任的权利。)
作者:newmiracle
出处:https://www.cnblogs.com/newmiracle/