From 9201a77b1410ba2ab75ee665e862f30cdb64d889 Mon Sep 17 00:00:00 2001 From: Mikhail Date: Sat, 8 Jun 2024 22:02:50 +0000 Subject: [PATCH] Update default.conf --- default.conf | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/default.conf b/default.conf index 9ed9659..18ed5cc 100644 --- a/default.conf +++ b/default.conf @@ -354,6 +354,19 @@ server { proxy_set_header Host $host; proxy_pass http://10.8.0.6:8006/; } + location /requestquiz/ { + 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,response-type always; + 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,response-type always; + proxy_set_header Host $host; + proxy_pass http://10.8.0.6:8007/; + } location /verification1 { if ($request_method = OPTIONS) { add_header Access-Control-Allow-Origin $http_origin always;