location ^~ /haiyoushei {
set $aa aa.bb.com;
proxy_set_header Host $aa;
add_header Access-Control-Allow-Origin *;
if ($request_uri ~ /haiyoushei/(.+)){
set $url $1;
}
proxy_pass http://$aa/$url;
}
Nginx跨域解决
最新推荐文章于 2024-08-23 14:01:54 发布