From ea164b931b20334afb2d1ab66cfdd5249c28d9cc Mon Sep 17 00:00:00 2001 From: Mikhail Date: Thu, 18 Jan 2024 02:17:30 +0000 Subject: [PATCH] Update default.conf --- default.conf | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/default.conf b/default.conf index d1cbed9..428a472 100644 --- a/default.conf +++ b/default.conf @@ -86,6 +86,21 @@ server { proxy_pass http://10.6.0.11:8065/; } + location /codeword/ { + 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:59664/; + } + location /answer/ { if ($request_method = OPTIONS) { add_header Access-Control-Allow-Origin $http_origin always;