You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
open-mcp-client example: the MCP app preview iframe runs on the host origin (srcdoc + allow-same-origin) #7997
A srcdoc document with allow-same-origin runs on the host page's origin. An app from any MCP server that the user connects can then read the host's cookies and storage. It can also write into the host page. This is the same defect as #6910, which #7896 fixes in @copilotkit/mcp-apps-renderer. This example builds its own iframe, so that fix does not reach it.
Fix: drop allow-same-origin so that the app gets an opaque origin. Another option is to render the preview through the renderer package. This is example code, but users copy examples.
Activity
copilotkit-outpost-bot commentedon Oct 26, 2026
This needs a maintainer review to give you a reliable next step.
🤖 Generated by CopilotKit AI Support · Documentation
Was this helpful? React with 👍 or 👎
fix(example): isolate MCP app preview origin (CopilotKit#7999)