Update default.conf
This commit is contained in:
parent
1abefd1055
commit
1dc0e5644d
15
default.conf
15
default.conf
@ -120,6 +120,21 @@ server {
|
|||||||
proxy_pass http://10.8.0.6:8065/;
|
proxy_pass http://10.8.0.6:8065/;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
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_pass http://10.8.0.6:8066/;
|
||||||
|
}
|
||||||
|
|
||||||
location /codeword/ {
|
location /codeword/ {
|
||||||
if ($request_method = OPTIONS) {
|
if ($request_method = OPTIONS) {
|
||||||
add_header Access-Control-Allow-Origin $http_origin always;
|
add_header Access-Control-Allow-Origin $http_origin always;
|
||||||
|
Loading…
Reference in New Issue
Block a user