Replace "external" with "network" in CSP documentation
The term "external" is misleading for MCP Apps because developers typically interpret it as "third-party." However, MCP App HTML runs in a sandboxed iframe with no same-origin server, so *all* origins must be declared—including where your own bundled JS/CSS is served from. Using "network" instead avoids this confusion and aligns with the detailed explanations in `patterns.md` and `spec.types.ts`. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
parent
ec0f2174f3
commit
c39b40e7c8
1 changed files with 21 additions and 23 deletions
|
|
@ -164,7 +164,7 @@ function registerAppResource_basicUsage(server: McpServer) {
|
|||
}
|
||||
|
||||
/**
|
||||
* Example: registerAppResource with CSP configuration for external domains.
|
||||
* Example: registerAppResource with CSP configuration for network access.
|
||||
*/
|
||||
function registerAppResource_withCsp(
|
||||
server: McpServer,
|
||||
|
|
|
|||
Loading…
Reference in a new issue