From 1cf76fa2e7cec2361bf93fe3bb33c4a6ae5ed221 Mon Sep 17 00:00:00 2001 From: Mikhail Date: Fri, 23 Jun 2023 15:42:29 +0000 Subject: [PATCH] Update file default.conf --- default.conf | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/default.conf b/default.conf index 659ba49..dda2a1c 100644 --- a/default.conf +++ b/default.conf @@ -76,6 +76,21 @@ server { proxy_pass http://hub-admin-backend-service:8005/; } + location /customer/ { + 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://customer-service-staging:8065/; + } + location /price/ { if ($request_method = OPTIONS) { add_header Access-Control-Allow-Origin $http_origin always;