mirror of https://github.com/kortix-ai/suna.git
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:
parent
8869138a7e
commit
01c0178531
|
@ -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"],
|
||||
)
|
||||
|
||||
|
|
Loading…
Reference in New Issue