美文网首页
nginx跨越问题

nginx跨越问题

作者: 我是大黄蜂 | 来源:发表于2020-07-21 13:42 被阅读0次

配置一下就可以

add_header Access-Control-Allow-Origin *;

 add_header Access-Control-Allow-Methods'GET,POST';

 add_header Access-Control-Allow-Headers'DNT,X-Mx-ReqToken,Keep-Alive,User-Agent,X-Requested-With,If-Modified-Since,Cache-Control,Content-Type,Authorization';

相关文章

网友评论

      本文标题:nginx跨越问题

      本文链接:https://www.haomeiwen.com/subject/qajikktx.html