From 16288d2f52077a08c38824aa71b1e1ca50d47b9e Mon Sep 17 00:00:00 2001 From: Mikhail Date: Thu, 7 Mar 2024 19:28:30 +0000 Subject: [PATCH] Update admin.conf --- admin.conf | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/admin.conf b/admin.conf index 22cdb42..06bf38f 100644 --- a/admin.conf +++ b/admin.conf @@ -44,6 +44,20 @@ server { add_header Access-Control-Allow-Methods OPTIONS,GET,POST,PATCH,PUT,DELETE; proxy_pass http://10.6.0.11:59300; } + location /manager/ { + 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:59301; + } location /swagger/ { proxy_pass http://10.6.0.11:59300/;