From 01c0178531b70ecfffc76239a65baf1513b8d010 Mon Sep 17 00:00:00 2001 From: mykonos-ibiza <222371740+mykonos-ibiza@users.noreply.github.com> Date: Tue, 29 Jul 2025 19:43:32 +0530 Subject: [PATCH] fix(api): update allowed methods in CORS middleware to include PATCH - Modified the CORS middleware configuration to support the PATCH method, enhancing API flexibility for client requests. --- backend/api.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/api.py b/backend/api.py index 682f43c9..0a20f158 100644 --- a/backend/api.py +++ b/backend/api.py @@ -148,7 +148,7 @@ app.add_middleware( allow_origins=allowed_origins, allow_origin_regex=allow_origin_regex, allow_credentials=True, - allow_methods=["GET", "POST", "PUT", "DELETE", "OPTIONS"], + allow_methods=["GET", "POST", "PUT", "PATCH", "DELETE", "OPTIONS"], allow_headers=["Content-Type", "Authorization", "X-Project-Id", "X-MCP-URL", "X-MCP-Type", "X-MCP-Headers", "X-Refresh-Token", "X-API-Key"], )