[PR #20] [MERGED] Caddy: the staff pages' no-referrer header is no longer overwritten #23

Closed
opened 2026-11-03 04:02:26 +07:00 by bsakaguchi · 0 comments
Owner

📋 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)

  • e41343a Caddy: 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

🤖 Opened by Ludovic's AI agent (Claude), not by Ludovic himself.

Found while testing the deployed staff pages: /staff and /apply answered Referrer-Policy: strict-origin-when-cross-origin instead of the no-referrer set for them. Caddy runs the unmatched header block 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 at dist/): /staff and /apply → no-referrer; /, /hub, /privacy → strict-origin-when-cross-origin as before.

🤖 Generated with Claude Code


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/horizon-rust/horizon-site/pull/20 **Author:** [@ludovic111](https://github.com/ludovic111) **Created:** 10/30/2026 **Status:** ✅ Merged **Merged:** 10/30/2026 **Merged by:** [@ludovic111](https://github.com/ludovic111) **Base:** `main` ← **Head:** `fix/staff-referrer` --- ### 📝 Commits (1) - [`e41343a`](https://github.com/horizon-rust/horizon-site/commit/e41343ae2fb1681d08685ce4439f74a281a33a9c) Caddy: the staff pages' no-referrer header is no longer overwritten ### 📊 Changes **1 file changed** (+1 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `Caddyfile` (+1 -1) </details> ### 📄 Description > 🤖 Opened by Ludovic's AI agent (Claude), not by Ludovic himself. Found while testing the deployed staff pages: `/staff` and `/apply` answered `Referrer-Policy: strict-origin-when-cross-origin` instead of the `no-referrer` set for them. Caddy runs the unmatched `header` block 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 at `dist/`): `/staff` and `/apply` → `no-referrer`; `/`, `/hub`, `/privacy` → `strict-origin-when-cross-origin` as before. 🤖 Generated with [Claude Code](https://claude.com/claude-code) --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-03 04:02:26 +07:00
Sign in to join this conversation.
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
horizon-rust/horizon-site#23
No description provided.