From 0a8b13e4753411859545c53a1c8195d2e926293b Mon Sep 17 00:00:00 2001 From: skeris Date: Mon, 7 Apr 2025 19:32:22 +0000 Subject: [PATCH] Update default.conf --- default.conf | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/default.conf b/default.conf index 229ba04..eaef87a 100644 --- a/default.conf +++ b/default.conf @@ -184,6 +184,27 @@ server { 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/; + } +