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>

原文地址:https://www.cnblogs.com/newmiracle/p/11856349.html