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.
This commit is contained in:
mykonos-ibiza 2025-07-29 19:43:32 +05:30
parent 8869138a7e
commit 01c0178531
1 changed files with 1 additions and 1 deletions

View File

@ -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"],
)