Skip to main content
If your site enforces a Content Security Policy, allow the Typewise domains below so the chat can load and connect. Merge them with your existing values.

Chat widget

Add these to connect-src only if you use the feature:
To avoid 'unsafe-inline' in script-src, add a nonce to the inline window.twConfig script and use 'strict-dynamic':
This works because the installation snippet loads sdk.js from that inline script. If you load sdk.js with its own <script src> tag instead, add the nonce to that tag too. 'strict-dynamic' ignores the https://platform.typewise.app host allowance.style-src still needs 'unsafe-inline'. The widget doesn’t support style nonces.

Chat SDK

The Chat SDK renders no UI, so it only needs connect-src, plus script-src if you load the script-tag build.

Verify your CSP

1

Open the page with the chat

Load a page where the widget or SDK runs.
2

Open the browser console

Press F12 and go to the Console tab.
3

Look for CSP errors

They start with Refused to load or Refused to connect and name the blocked domain and directive.
4

Allow the blocked domain

Add it to the matching directive in your CSP header, then reload.

Troubleshooting