一个代理如下,其他url的类似 location /users { add_header "Access-Control-Allow-Origin" "$http_origin"; add_header "Access-Control-Allow-Credentials" "true"; add_header "Access-Control-Allow-Methods" "GET, POST, OPTIONS, DELETE, PATCH, PUT, HEAD"; add_header "Access-Control-Allow-Headers" "DNT,X-Mx-ReqToken,Keep-Alive,User-Agent,X-Requested-With,If-Modified-Since,Cache-Control,Content-Type"; proxy_pass http://pengrongjie.com; }
一个代理如下,其他url的类似