Update default.conf
This commit is contained in:
parent
56b6a802c6
commit
1e1b7bd67f
15
default.conf
15
default.conf
@ -111,6 +111,21 @@ server {
|
|||||||
proxy_pass http://10.6.0.11:59664/;
|
proxy_pass http://10.6.0.11:59664/;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
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 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.11:9664/;
|
||||||
|
}
|
||||||
|
|
||||||
location /answer/ {
|
location /answer/ {
|
||||||
proxy_set_header Referer $host;
|
proxy_set_header Referer $host;
|
||||||
proxy_set_header Origin $http_origin;
|
proxy_set_header Origin $http_origin;
|
||||||
|
Loading…
Reference in New Issue
Block a user