Skip to content

Infisical is the open-source platform for securing secrets, certificates, access, and AI Agents.

Update CORS middleware to disallow credentials on MCP OAuth routes

Saif9b26d55e758b
diff --git a/backend/src/server/app.ts b/backend/src/server/app.ts
index 2201ac9815..84291d9240 100644
--- a/backend/src/server/app.ts
+++ b/backend/src/server/app.ts
@@ -116,7 +116,7 @@ export const main = async ({
(req.url.includes("/ai/mcp/endpoints/") && req.url.includes("/oauth/"));
if (isMcpOAuthRoute) {
- callback(null, { origin: true, credentials: true });
+ callback(null, { origin: true, credentials: false });
return;
}