# Content Security Policy

> The directives a site with a CSP needs so the Numbat tag can load and send events.

If your site sets a Content Security Policy, allow the host the Numbat
tag loads from in two directives. The tag contacts no other host.

## Directives

With the standard tracking code, add the shared host.

```text
script-src  https://go.ironbarkedge.com
connect-src https://go.ironbarkedge.com
```

| Directive | Value | Why |
|---|---|---|
| `script-src` | `https://go.ironbarkedge.com` | Loads `/<your-site-id>.js` |
| `connect-src` | `https://go.ironbarkedge.com` | Events to `/e`, identity to `/i`, the recovery token from `/r`, and the site settings from `/<your-site-id>.json` |

The tag needs no `img-src`, `frame-src` or `style-src` allowance, and
sets no inline script.

## With a custom domain

With a [custom domain](/docs/tracking/install-the-script), use your
subdomain instead.

```text
script-src  https://data.example.com
connect-src https://data.example.com
```

Keep the shared host too while the old tag is still on any page.

## Related

- [Install the script](/docs/tracking/install-the-script)
- [Troubleshooting](/docs/tracking/troubleshooting)
