From fe627e656605dcd4cc1f68816747ae3f6d648543 Mon Sep 17 00:00:00 2001 From: Mikhail Date: Wed, 17 Apr 2024 12:10:31 +0000 Subject: [PATCH] Update default.conf --- default.conf | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/default.conf b/default.conf index 4fb0fdb..ea269a4 100644 --- a/default.conf +++ b/default.conf @@ -222,6 +222,23 @@ server { proxy_pass http://hub; } + + 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,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_pass http://10.8.0.8:8085/; + } + + location /auth { proxy_hide_header Access-Control-Allow-Origin; add_header Access-Control-Allow-Origin hub.pena.digital always;