diff --git a/default.conf b/default.conf index 7a7342b..11d357a 100644 --- a/default.conf +++ b/default.conf @@ -120,6 +120,12 @@ server { proxy_pass http://10.6.0.31:8006/; } location /verification/ { + 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 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,authorization always;