From ed2c209f366f610e75514b1789a9751032edb89a Mon Sep 17 00:00:00 2001 From: skeris Date: Tue, 25 Feb 2025 14:34:35 +0000 Subject: [PATCH] Update default.conf --- default.conf | 15 +++++++++++++++ 1 file changed, 15 insertions(+) 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;