Update default.conf
This commit is contained in:
parent
75893db104
commit
0a8b13e475
21
default.conf
21
default.conf
@ -184,6 +184,27 @@ server {
|
||||
proxy_pass http://10.7.0.6:8067/;
|
||||
}
|
||||
|
||||
location /customer/v1.0.0/ {
|
||||
if ($request_method = OPTIONS) {
|
||||
add_header Access-Control-Allow-Origin $http_origin always;
|
||||
add_header Access-Control-Allow-Credentials true always;
|
||||
add_header Access-Control-Allow-Headers content-type,authorization,response-type always;
|
||||
add_header Access-Control-Allow-Methods OPTIONS,GET,POST,PATCH,PUT,DELETE;
|
||||
return 200;
|
||||
}
|
||||
add_header Access-Control-Allow-Origin $http_origin always;
|
||||
add_header Access-Control-Allow-Credentials true always;
|
||||
add_header Access-Control-Allow-Headers content-type,authorization,response-type always;
|
||||
add_header Access-Control-Allow-Methods OPTIONS,GET,POST,PATCH,PUT,DELETE;
|
||||
proxy_set_header Referer $host;
|
||||
proxy_set_header Origin $http_origin;
|
||||
proxy_set_header X-Real-IP $remote_addr;
|
||||
proxy_set_header X-Client-Port $remote_port;
|
||||
proxy_set_header Origin $host;
|
||||
|
||||
proxy_pass http://10.7.0.6:8067/;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user