Update default.conf
All checks were successful
Deploy / CreateImage (push) Successful in 37s
Deploy / DeployService (push) Successful in 30s

This commit is contained in:
skeris 2025-04-07 19:32:22 +00:00
parent 75893db104
commit 0a8b13e475

@ -184,6 +184,27 @@ server {
proxy_pass http://10.7.0.6:8067/; proxy_pass http://10.7.0.6:8067/;
} }
location /customer/v1.0.0/ {
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_set_header Referer $host;
proxy_set_header Origin $http_origin;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Client-Port $remote_port;
proxy_set_header Origin $host;
proxy_pass http://10.7.0.6:8067/;
}