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>

posted @ 2019-11-14 12:59  newmiracle宇宙  阅读(551)  评论(0编辑  收藏  举报