From 03028df7415c4758ab3c7e50c9b8201d700cc19f Mon Sep 17 00:00:00 2001 From: Mikhail Date: Sun, 11 Jun 2023 16:42:03 +0000 Subject: [PATCH] Update file default.conf --- default.conf | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/default.conf b/default.conf index 2080cef..659ba49 100644 --- a/default.conf +++ b/default.conf @@ -75,6 +75,21 @@ server { add_header Access-Control-Allow-Methods OPTIONS,GET,POST,PATCH,PUT,DELETE; proxy_pass http://hub-admin-backend-service:8005/; } + + location /price/ { + 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:8001/; + } location /feedback/ { if ($request_method = OPTIONS) { add_header Access-Control-Allow-Origin $http_origin always;