Update default.conf

This commit is contained in:
Mikhail 2024-03-15 18:16:27 +00:00
parent 56b6a802c6
commit 1e1b7bd67f

@ -111,6 +111,21 @@ server {
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/ {
proxy_set_header Referer $host;
proxy_set_header Origin $http_origin;