Repository navigation
Security headers: the policy no longer allows Cloudflare's beacon - #168
Merged
Merged
Conversation
Web Analytics is turned off in Cloudflare, so no page carries its beacon any more (checked on the live site). The Content-Security-Policy allows scripts and connections from the site and the self-hosted analytics only, as the site's rule says, and the unit test again holds it equal to the script allow-list. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_0187cnkVKwRYfbFPY3nTZj8k
Contributor
|
Preview: download the built site for d7b8593, unzip it and run |
pixari
marked this pull request as ready for review
November 24, 2026 10:51
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The maintainer turned Web Analytics off in Cloudflare, so the edge no longer adds its beacon to pages (checked on six live pages, twice: no script tag, no request).
This removes the two origins #161 had allowed (
static.cloudflareinsights.com,cloudflareinsights.com). The Content-Security-Policy now allows scripts and connections from the site and the self-hosted analytics only, as the site's rule says. The unit test again holds the policy equal to the script check's allow-list, and the "Security headers" requirement inopenspec/specs/website-platformdrops its mention of the CDN's beacon.Verified:
npm test(118 pass).Generated by Claude Code