Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,6 @@ export class McpApp extends Root {
<iframe
id="mcp-sandbox"
referrerpolicy="origin"
sandbox="allow-scripts allow-forms allow-popups allow-modals allow-same-origin"
></iframe>
</div>
`;
Expand Down Expand Up @@ -176,7 +175,7 @@ export class McpApp extends Root {
// 4. Send the Inner HTML UI resource to the sandbox to spin up the actual app.
await this.bridge.sendSandboxResourceReady({
html: this.htmlContent,
sandbox: "allow-scripts allow-forms allow-popups allow-modals allow-same-origin"
sandbox: "allow-scripts allow-forms allow-popups allow-modals"
});
}

Expand Down
2 changes: 1 addition & 1 deletion samples/client/shared/mcp_apps_inner_iframe/sandbox.ts
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ if (!disableSelfTest) {
// iframe on a separate origin. It creates an inner iframe for untrusted HTML content.
const inner = document.createElement("iframe");
inner.style.cssText = "width:100%; height:100%; border:none;";
inner.setAttribute("sandbox", "allow-scripts allow-same-origin allow-forms");
inner.setAttribute("sandbox", "allow-scripts allow-forms allow-popups allow-modals");
document.body.appendChild(inner);

const RESOURCE_READY_NOTIFICATION: McpUiSandboxResourceReadyNotification["method"] =
Expand Down
Loading