Content Security Policy
If your site sends a Content Security Policy, it needs two entries for Pointline. Nothing else.
What to add
script-src https://app.pointline.ai;
connect-src https://api.pointline.ai wss://api.pointline.ai;| Entry | Why |
|---|---|
script-src https://app.pointline.ai | Loads the one script tag. |
connect-src https://api.pointline.ai | Joins a session with the code or link (one HTTPS request). |
connect-src wss://api.pointline.ai | The live connection while the page is shared (a WebSocket). |
What you do not need
- No
'unsafe-inline'or'unsafe-eval': the SDK uses no inline scripts, no inline styles and noeval. - No
style-src,img-src,font-src,media-src,frame-srcorworker-srcentry: it loads no stylesheets, images, fonts, sounds, frames or workers. - No nonce or hash for the install line: it is a script with a
src, not an inline script.
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:
<script nonce="YOUR-NONCE" src="https://app.pointline.ai/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.