diff --git a/default.conf b/default.conf index ae85f2f..ebecfa5 100644 --- a/default.conf +++ b/default.conf @@ -20,6 +20,11 @@ server { add_header Access-Control-Allow-Methods OPTIONS,GET,POST,PATCH,PUT,DELETE; return 200; } + + if ($args != "") { + return 404; + } + 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; @@ -48,6 +53,11 @@ server { add_header Access-Control-Allow-Methods OPTIONS,GET,POST,PATCH,PUT,DELETE; return 200; } + + if ($args != "") { + return 404; + } + 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,response-type always; @@ -69,6 +79,11 @@ server { add_header Access-Control-Allow-Methods OPTIONS,GET,POST,PATCH,PUT,DELETE; return 200; } + + if ($args != "") { + return 404; + } + 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,response-type always;