Skip to content
Merged
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
2 changes: 1 addition & 1 deletion apps/web/src/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ const cspFor = (styleNonce) =>
"frame-ancestors 'none'",
// The shared footer's newsletter form posts to pit.world (double opt-in, keeps this site's host).
"form-action 'self' https://pit.world",
`script-src 'self' ${THEME_SCRIPT_HASH}${analyticsOrigin ? ` ${analyticsOrigin}` : ''}`,
`script-src 'self' https://cdn.jsdelivr.net ${THEME_SCRIPT_HASH}${analyticsOrigin ? ` ${analyticsOrigin}` : ''}`,
// The inline <style>s (@profullstack/footer and pit.world): allowed by a per-request
// nonce, never 'unsafe-inline', and not a hash because their CSS comes from
// outside this repo and changes without a deploy here.
Expand Down
7 changes: 7 additions & 0 deletions apps/web/src/components/Layout.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,13 @@ export function Layout({
{config.analytics.src ? (
<script defer src={config.analytics.src} data-site={config.analytics.siteId} />
) : null}
{/* WebMCP (@profullstack/webmcp): site_info and open_page (the device tests) for the AI agent in the visitor's browser. */}
<script
type="module"
data-webmcp=""
src="https://cdn.jsdelivr.net/npm/@profullstack/webmcp@0/src/embed.js"
data-pages={JSON.stringify({ microphone: '/microphone', speaker: '/speaker', camera: '/camera', keyboard: '/keyboard', mouse: '/mouse', display: '/display', network: '/network', gamepad: '/gamepad' })}
/>
</head>
<body>
<a class="skip-link" href="#main">
Expand Down
Loading