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跨域解决
猜你喜欢
转载自blog.csdn.net/Just_do_it_HZF/article/details/133773673
今日推荐
周排行