Update default.conf
This commit is contained in:
parent
ec660abd45
commit
c7646ab73a
15
default.conf
15
default.conf
@ -92,6 +92,21 @@ server {
|
|||||||
proxy_pass http://customer-service-staging:8065/;
|
proxy_pass http://customer-service-staging:8065/;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
location /squiz/ {
|
||||||
|
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 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 always;
|
||||||
|
add_header Access-Control-Allow-Methods OPTIONS,GET,POST,PATCH,PUT,DELETE;
|
||||||
|
proxy_pass http://10.6.0.23:1488/;
|
||||||
|
}
|
||||||
|
|
||||||
location /price/ {
|
location /price/ {
|
||||||
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