example-host: fix sandboxing setup (#21)
* example-host: prevent accidental non-iframing of sandbox (or iframing in prod) * fix sandbox isolation + "test in prod" * Update package.json * Update sandbox.ts
This commit is contained in:
parent
ca09c415bf
commit
b4c6019d47
1 changed files with 116 additions and 66 deletions
|
|
@ -8,7 +8,7 @@ import { Tool } from "@modelcontextprotocol/sdk/types.js";
|
|||
import { AppRenderer, AppRendererProps } from "../src/AppRenderer";
|
||||
import { AppBridge } from "../../../dist/src/app-bridge";
|
||||
|
||||
const SANDBOX_PROXY_URL = URL.parse("/sandbox.html", location.href)!;
|
||||
const SANDBOX_PROXY_URL = new URL("http://localhost:8081/sandbox.html");
|
||||
|
||||
/**
|
||||
* Example React application demonstrating the AppRenderer component.
|
||||
|
|
|
|||
Loading…
Reference in a new issue