# Allowed origins and CSP

> List the sites that may load the widget, and let Iris through your Content Security Policy.

## Allowed origins

While **Settings → Widget → Allowed origins** is empty, any https website can load the widget. The App ID is public, so anyone can copy it to their own site and start chats in your inbox. To limit the widget to your sites, add each origin that loads it: the scheme, the host and the port, with no path. With a filled list, a request from any other origin fails with `403 origin_not_allowed`.

```text title="Allowed origins"
https://shop.example.com
https://*.shop.example.com
http://localhost:8080
app://breakdown-lab
```

- Use `https://`. Only a local test origin, such as `http://localhost:8080`, may use `http://`, and it needs a port.
- `https://*.shop.example.com` allows every subdomain of a domain you own.
- An empty list does not open `http://localhost` or custom schemes. Add them as entries.
- An app without a web address, such as an Electron app that loads a file, needs no entry: it passes its app key. See [App key](/guides/app-key/). A custom-scheme entry, its own scheme and name such as `app://breakdown-lab`, still works too.

## Content Security Policy

If your site sends a Content Security Policy, add these sources to it. **Settings → Install** shows the same list.

```text title="Content-Security-Policy"
script-src https://iris-cdn.playitback.dev;
font-src https://iris-cdn.playitback.dev;
connect-src https://iris-api.playitback.dev wss://iris-api.playitback.dev https://84f1fe1aab95b9afcdd4992b9c994c31.r2.cloudflarestorage.com;
img-src https://iris-api.playitback.dev https://84f1fe1aab95b9afcdd4992b9c994c31.r2.cloudflarestorage.com;
media-src https://84f1fe1aab95b9afcdd4992b9c994c31.r2.cloudflarestorage.com;
```
