Skip to main content
If your website enforces a Content Security Policy, add the following directives so the chat widget can load.

Required directives

Merge these with your existing CSP values.

Optional: file attachments

Optional: voice input

Directive reference

script-src

To avoid 'unsafe-inline' in script-src, add a nonce to the inline script and use 'strict-dynamic':
This does not eliminate 'unsafe-inline' from style-src. The widget injects styles at runtime and does not support style nonces.

connect-src

style-src

img-src

Verify your CSP

1

Open your website

Load the page with the chat widget installed.
2

Open the console

Press F12, go to the Console tab.
3

Look for CSP errors

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

Add the blocked domain

Add it to the matching directive in your CSP header.

Troubleshooting

See also