Skip to content

Commit 79d39e7

Browse files
committed
fix(mcp): preserve app frame security headers
1 parent aeacbeb commit 79d39e7

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

‎apps/sim/next.config.ts‎

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -423,6 +423,13 @@ const nextConfig: NextConfig = {
423423
key: 'X-Frame-Options',
424424
value: 'SAMEORIGIN',
425425
},
426+
],
427+
},
428+
{
429+
// MCP App frames supply an opaque-origin sandbox policy with provider-declared domains.
430+
source:
431+
'/((?!workspace|chat|login|signup|api/mothership/chats/[^/]+/mcp-results/[^/]+/frame/?$|$).*)',
432+
headers: [
426433
{
427434
key: 'Content-Security-Policy',
428435
value: getMainCSPPolicy(),

0 commit comments

Comments
 (0)