From 0ea2ca744a2017c8a8416b27593cbbc53e76c4d0 Mon Sep 17 00:00:00 2001 From: bakatrouble Date: Fri, 25 Jul 2025 01:06:32 +0300 Subject: [PATCH] update cors --- config/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config/utils.py b/config/utils.py index 2abe97e..1fe67df 100644 --- a/config/utils.py +++ b/config/utils.py @@ -71,7 +71,7 @@ def get_config_form(mdl): class AllowCORSMixin(object): def add_access_control_headers(self, response): response["Access-Control-Allow-Origin"] = "*" - response["Access-Control-Allow-Methods"] = "GET, OPTIONS" + response["Access-Control-Allow-Methods"] = "GET, POST, OPTIONS" response["Access-Control-Max-Age"] = "1000" response["Access-Control-Allow-Headers"] = "X-Requested-With, Content-Type"