Update file default.conf
This commit is contained in:
parent
03028df741
commit
1cf76fa2e7
15
default.conf
15
default.conf
@ -76,6 +76,21 @@ server {
|
||||
proxy_pass http://hub-admin-backend-service:8005/;
|
||||
}
|
||||
|
||||
location /customer/ {
|
||||
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://customer-service-staging:8065/;
|
||||
}
|
||||
|
||||
location /price/ {
|
||||
if ($request_method = OPTIONS) {
|
||||
add_header Access-Control-Allow-Origin $http_origin always;
|
||||
|
Loading…
Reference in New Issue
Block a user