Skip to content

Commit 2810452

Browse files
committed
fix(mcp): handle OPTIONS preflight on integrations exchange endpoint
1 parent ae3de89 commit 2810452

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

TablePro/Core/MCP/MCPRouter.swift

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -983,6 +983,9 @@ extension MCPRouter {
983983
}
984984

985985
func handleIntegrationsExchange(_ request: HTTPRequest) async -> RouteResult {
986+
if request.method == .options {
987+
return .noContent
988+
}
986989
guard request.method == .post else {
987990
return .httpError(status: 405, message: "Method not allowed")
988991
}

0 commit comments

Comments
 (0)