mirror of
https://github.com/horizon-rust/horizon-site.git
synced 2026-12-03 19:12:41 +07:00
[PR #20] [MERGED] Caddy: the staff pages' no-referrer header is no longer overwritten #23
Labels
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
horizon-rust/horizon-site#23
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/horizon-rust/horizon-site/pull/20
Author: @ludovic111
Created: 10/30/2026
Status: ✅ Merged
Merged: 10/30/2026
Merged by: @ludovic111
Base:
main← Head:fix/staff-referrer📝 Commits (1)
e41343aCaddy: the staff pages' no-referrer header is no longer overwritten📊 Changes
1 file changed (+1 additions, -1 deletions)
View changed files
📝
Caddyfile(+1 -1)📄 Description
Found while testing the deployed staff pages:
/staffand/applyansweredReferrer-Policy: strict-origin-when-cross-origininstead of theno-referrerset for them. Caddy runs the unmatchedheaderblock after the matched one, so it overwrote it. The site-wide value is now a default (?Referrer-Policy). Low risk before the fix: the pages'<meta name="referrer" content="no-referrer">applied and the one-time tokens are in the URL fragment, which is never sent.Tests:
caddy validate; a local Caddy on this Caddyfile (root pointed atdist/):/staffand/apply→no-referrer;/,/hub,/privacy→strict-origin-when-cross-originas before.🤖 Generated with Claude Code
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.