nginx支持跨域
nginx支持跨域配置
配置
修改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;
...
原创
2018-11-27 21:54:40 ·
995 阅读 ·
0 评论