We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 7b4b7fb + 6ab0e48 commit 6b6ea2fCopy full SHA for 6b6ea2f
1 file changed
docs/scripts/generate-csp.mjs
@@ -60,11 +60,13 @@ const scriptHashes = getInlineScriptHashes();
60
61
const csp = [
62
`default-src 'self'`,
63
- `script-src 'self' ${scriptHashes.join(' ')}`,
+ // static.cloudflareinsights.com / cloudflareinsights.com allow the Cloudflare Web Analytics
64
+ // beacon, which Cloudflare injects at the edge (it is not present in the origin HTML)
65
+ `script-src 'self' ${scriptHashes.join(' ')} https://static.cloudflareinsights.com`,
66
`style-src 'self' 'unsafe-inline'`,
67
`img-src 'self' data:`,
68
`font-src 'self' data:`,
- `connect-src 'self'`,
69
+ `connect-src 'self' https://cloudflareinsights.com`,
70
`frame-ancestors 'none'`,
71
`base-uri 'self'`,
72
`form-action 'self'`,
0 commit comments