Skip to Content
Pageflock

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 withscript-srcconnect-src
@pageflock/analytics or @pageflock/trackerNothing new, it's in your bundlehttps://e.pageflock.com
Script taghttps://e.pageflock.comhttps://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.com

Self-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.