# Content-Security-Policy

https://flowhelp.ai/docs/install/csp

If your site has a Content-Security-Policy, the widget needs exactly two sources: `https://cdn.flowhelp.ai` in `script-src` and `https://app.flowhelp.ai` in `connect-src`.

## The two sources

Add these two hosts to your policy.

```csp
script-src  … https://cdn.flowhelp.ai;
connect-src … https://app.flowhelp.ai;
```

The widget uses no inline JavaScript, no `eval`, and no external resources beyond these two hosts. The loader has a fixed path with a 5-minute cache. The core is addressed by hash, with `integrity` (SRI) and `crossorigin`.

## Styles stay as they are

The widget's styles live in a Shadow DOM, so `style-src` does not need to change.

## Your own avatar image

There is one exception. If you set the assistant's avatar to an address of your own (the “Avatar URL” field under **Appearance**) and your policy has `img-src`, add the host of that image. The same applies when you pick the “Assistant avatar” chat button, because that variant loads the image as soon as the page opens.

## Live chat needs no change

When someone on your team takes live chats, the widget opens one connection to `app.flowhelp.ai`, the same host as the chat. It is already covered by the `connect-src` entry above.

## Other headers

Your page's `X-Frame-Options` does not matter. The widget is not an iframe.

## See also

- [Add the widget to your site](https://flowhelp.ai/docs/install/snippet)
- [The widget doesn't show up](https://flowhelp.ai/docs/install/troubleshooting)
- [Chat window](https://flowhelp.ai/docs/appearance/window)

Last changed: November 24, 2026
