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;