Update default.conf
This commit is contained in:
parent
e9614bd994
commit
fe627e6566
17
default.conf
17
default.conf
@ -222,6 +222,23 @@ server {
|
||||
proxy_pass http://hub;
|
||||
}
|
||||
|
||||
|
||||
location /treasurer/ {
|
||||
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.8:8085/;
|
||||
}
|
||||
|
||||
|
||||
location /auth {
|
||||
proxy_hide_header Access-Control-Allow-Origin;
|
||||
add_header Access-Control-Allow-Origin hub.pena.digital always;
|
||||
|
Loading…
Reference in New Issue
Block a user