Strict CSP, with the connect/frame guidance applied
Lokl: https://lokl-web.basharatusman-a.workers.dev · organization lokl-test-account
Expected on this host (an allowed website)
Works as on the other pages, despite the strict policy: the list shows the test experiences and times, the button is a normal Book button. The "Policy violations this page saw" list stays at "None." and the console has no "Refused to…" errors.
If you see the plain "Book now" link instead, embed-lab.allegco.com is not on the organization's allowed websites yet: that is the blocked result, and a mismatch for this host.
Expected on this host (not an allowed website)
Lokl refuses to show its booking embeds on this website, so there is no booking panel, no empty box and no error frame. Where each embed would be, you see:
- A plain black Book now button that opens
https://lokl-web.basharatusman-a.workers.dev/book/lokl-test-accountin the same tab. - A plain black Book now button that opens
https://lokl-web.basharatusman-a.workers.dev/book/lokl-test-account/dinner-shared/torontoin the same tab.
Lokl also makes a blocked-website record: the owner sees "A browser reported that embed-blocked.allegco.com tried to show your embed…" in Settings › Embed, with an Add it button. It is saved at most once an hour per website, so reloading does not add entries.
The page's Content-Security-Policy
Sent as a response header by this page (see _headers). No inline scripts or styles are used on this page.
default-src 'self'; script-src 'self' https://lokl-web.basharatusman-a.workers.dev; connect-src 'self' https://lokl-web.basharatusman-a.workers.dev; frame-src https://lokl-web.basharatusman-a.workers.dev; img-src 'self' data:; style-src 'self'; base-uri 'self'; form-action 'self'Where the "guidance" comes from
Lokl's Settings › Embed screen (origin/main) contains no operator CSP guidance text. Its messages only say "Only these sites can show your embeds. Anywhere else, visitors see a plain book button." So this page applies what the code requires, derived from public/widget.js and docs/agents/codebase.md:
script-src https://lokl-web.basharatusman-a.workers.dev: the page loadshttps://lokl-web.basharatusman-a.workers.dev/widget.js. (In both variants, otherwise nothing runs.)connect-src https://lokl-web.basharatusman-a.workers.dev: the loader callshttps://lokl-web.basharatusman-a.workers.dev/embed/lokl-test-account/configfirst (widget.js:fetch(config.toString(), { credentials: "omit" }); codebase.md "Preflight").frame-src https://lokl-web.basharatusman-a.workers.dev: the loader inserts an<iframe src="https://lokl-web.basharatusman-a.workers.dev/embed/lokl-test-account?…">.
Quoted from widget.js: "CSP connect-src, offline, rate limits and transient failures must not break a working frame integration. Mount as before; frame-ancestors remains the security boundary." That is why a missing connect-src alone still mounts the frame.
Policy violations this page saw
- None.
Each box is what Settings › Embed copies for that embed. This page loads widget.js once, at the bottom.
1. list
<div data-lokl-book="lokl-test-account" data-view="list" data-target="_top"></div>
<script src="https://lokl-web.basharatusman-a.workers.dev/widget.js" async></script>Live embed:
2. button
<div data-lokl-book="lokl-test-account" data-view="button" data-target="_top" data-product="dinner-shared" data-location="toronto"></div>
<script src="https://lokl-web.basharatusman-a.workers.dev/widget.js" async></script>Live embed: