Update file default.conf
This commit is contained in:
parent
a999ad37b9
commit
1dde0e84ab
10
default.conf
10
default.conf
@ -62,9 +62,17 @@ server {
|
|||||||
}
|
}
|
||||||
|
|
||||||
location /strator/ {
|
location /strator/ {
|
||||||
#add_header Access-Control-Allow-Origin $http_origin always;
|
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-Credentials true always;
|
||||||
add_header Access-Control-Allow-Headers content-type,authorization 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://hub-admin-backend-service:8005/;
|
proxy_pass http://hub-admin-backend-service:8005/;
|
||||||
}
|
}
|
||||||
location /feedback/ {
|
location /feedback/ {
|
||||||
|
Loading…
Reference in New Issue
Block a user