location / {
add_header Access-Control-Allow-Origin *;
add_header Access-Control-Allow-Headers "Origin, X-Requested-With, Content-Type, Accept";
add_header Access-Control-Allow-Methods "GET, POST, OPTIONS";
}
nginx跨域设置
本文链接:https://blog.hijs.cc/post/nginx-cros.html
-- EOF --
作者
admin
发表于
2018-12-03 16:52:02
,最后修改于
2018-12-03 16:52:02
Comments