SightlineDocs
Sign in

Content Security Policy

If your site sends a Content Security Policy, it needs two entries for Sightline. Nothing else.

What to add

Add to your policy
script-src  https://browsemcp-dashboard.haris-299.workers.dev;
connect-src https://browsemcp-api.haris-299.workers.dev wss://browsemcp-api.haris-299.workers.dev;
EntryWhy
script-src https://browsemcp-dashboard.haris-299.workers.devLoads the one script tag.
connect-src https://browsemcp-api.haris-299.workers.devJoins a session with the code or link (one HTTPS request).
connect-src wss://browsemcp-api.haris-299.workers.devThe live connection while the page is shared (a WebSocket).

What you do not need

If your policy uses nonces with strict-dynamic

With 'strict-dynamic', host entries in script-src are ignored, so give the tag your page's nonce like any other script:

HTML
<script nonce="YOUR-NONCE" src="https://browsemcp-dashboard.haris-299.workers.dev/sdk.js" async></script>

See what is blocked

Set a report-to (or report-uri) address in your policy, so that a blocked script or connection on a visitor's browser reaches you instead of failing silently. To check one page yourself, add data-debug to the tag and watch the browser console: see Debugging.

The usual sign of a missing entry: the caller enters the code and nothing happens (connect-src), or the button never appears (script-src).

A pinned version

The policy is the same for the versioned, integrity-checked tag on the Get started page.