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

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;

.....

原创文章如转载,请注明本文链接: http://newmiracle.cn/?p=2338

发表评论

电子邮件地址不会被公开。 必填项已用*标注