Skip to content

Update CSP to support Cloudflare Web Analytics#288

Merged
paustint merged 1 commit into
mainfrom
fix/csp-generation-cf-beacon
Jun 10, 2026
Merged

Update CSP to support Cloudflare Web Analytics#288
paustint merged 1 commit into
mainfrom
fix/csp-generation-cf-beacon

Conversation

@paustint

Copy link
Copy Markdown
Collaborator

Modify the Content Security Policy to allow scripts and connections from Cloudflare Web Analytics, enabling proper functionality of the analytics beacon.

Copilot AI review requested due to automatic review settings June 10, 2026 03:47

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Updates the docs site Content Security Policy (CSP) generator to allow Cloudflare Web Analytics to function by permitting Cloudflare’s injected beacon script and its outbound analytics requests.

Changes:

  • Allow https://static.cloudflareinsights.com in script-src to support the Cloudflare-injected analytics beacon script.
  • Allow https://cloudflareinsights.com in connect-src so the beacon can send analytics data.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@paustint paustint merged commit 6b6ea2f into main Jun 10, 2026
8 checks passed
@paustint paustint deleted the fix/csp-generation-cf-beacon branch June 10, 2026 04:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants