提交 09781233 authored 作者: Ras's avatar Ras

修改未位置

上级 2572699d
...@@ -16,16 +16,17 @@ server { ...@@ -16,16 +16,17 @@ server {
} }
location ^~ /nzwz { location ^~ /nzwz {
proxy_pass http://nzwz-server:8090; add_header Access-Control-Allow-Origin http://nzwz-system always;
proxy_set_header Host nzwz-system;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
add_header Access-Control-Allow-Origin http://localhost always;
add_header Access-Control-Allow-Headers "Accept,Accept-Encoding,Accept-Language,Connection,Content-Length,Content-Type,Host,Origin,Referer,User-Agent"; add_header Access-Control-Allow-Headers "Accept,Accept-Encoding,Accept-Language,Connection,Content-Length,Content-Type,Host,Origin,Referer,User-Agent";
add_header Access-Control-Allow-Methods "GET, POST, PUT, OPTIONS"; add_header Access-Control-Allow-Methods "GET, POST, PUT, OPTIONS";
add_header Access-Control-Allow-Credentials true; add_header Access-Control-Allow-Credentials true;
if ($request_method = 'OPTIONS') { if ($request_method = 'OPTIONS') {
return 200; return 200;
} }
proxy_pass http://nzwz-server:8090;
proxy_set_header Host nzwz-system;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
} }
} }
\ No newline at end of file
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论