Content Security Policy
What to allow when your site sets a Content Security Policy.
If your site sends a Content-Security-Policy header, the browser blocks requests that aren't on its lists. What Pageflock needs depends on how you installed it.
| Installed with | script-src | connect-src |
|---|---|---|
@pageflock/analytics or @pageflock/tracker | Nothing new, it's in your bundle | https://e.pageflock.com |
| Script tag | https://e.pageflock.com | https://e.pageflock.com |
For example, with the script tag:
Content-Security-Policy: default-src 'self'; script-src 'self' https://e.pageflock.com; connect-src 'self' https://e.pageflock.comSelf-hosting? Use your ingest Worker's origin instead of https://e.pageflock.com.
If events don't arrive, open the browser console: a CSP violation names the directive that blocked the request.