nginx 解决跨域
Nginx配置文件添加全局跨域
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 解决跨域
最新推荐文章于 2024-05-09 01:22:48 发布