Guides · ← All guides
Referrer-Policy and Permissions-Policy: The Two Quiet Headers You Are Probably Missing
Published: November 14, 2026 · Last reviewed: November 14, 2026 · 6 min read
Run a free BreachHunter assessment on your site →
The six-header table has a head (CSP, HSTS) that gets the attention and a tail that gets postponed forever. These are the tail: two headers whose absence rarely causes an incident by itself, but which close real, specific leaks — the password-reset URL forwarded to an analytics endpoint, the compromised third-party script quietly requesting geolocation on your checkout page.
This guide gives each header its own mechanics: what the Referer header has historically leaked and the value the scanner's fix text prescribes (strict-origin-when-cross-origin), and how Permissions-Policy's allow-list grammar (camera=(), microphone=()) turns off device access your site never uses. Both are five-minute fixes; the guide's real subject is why they are worth those five minutes.
What the Referer header leaks without a policy
When your page links anywhere or loads anything cross-origin, the browser sends a Referer header. The historical default sent the full URL. URLs carry more than page names: password-reset and unsubscribe links carry tokens; search and filter pages carry queries; apps put record IDs — sometimes session-adjacent identifiers — in paths. Every third-party resource on the page (analytics, ads, embeds, fonts) receives that full string, and it lands in their logs permanently.
Modern browsers default to strict-origin-when-cross-origin when no policy is set — which is progress, and also why the finding persists as LOW rather than higher. The scanner's prescribed fix is to send the policy explicitly: Referrer-Policy: strict-origin-when-cross-origin (or stricter, like same-origin or no-referrer for sensitive apps). Explicitness is the point: defaults vary by browser and era, your policy should not. An application with tokens in URLs should go stricter than the default and fix the tokens-in-URLs habit besides — the header is the net, not the trapeze.
Permissions-Policy: closing device APIs you never open
Every script on your page — including the third-party ones you invited and any that arrive compromised — can ask the browser for powerful features: camera, microphone, geolocation, USB, payment handling, motion sensors. Permissions-Policy is your page-level answer, declared in advance: Permissions-Policy: camera=(), microphone=(), geolocation=() reads as “nobody, not even us, may use these here.” Features the site genuinely uses get an allow-list of origins instead of a blanket ban.
The scanner's finding text frames it exactly that way: without the policy, “any script on the page can request camera, microphone or geolocation”. The realistic attack is not your code asking — it is someone else's code, riding your page, asking your visitor with your site's name on the permission prompt. Denying by default converts that prompt from a possibility into a browser refusal, silently, for every visitor. Like its sibling, the header is set once at the server and inherited by every page — the two LOWs together are the cheapest 4 points in the entire report, and a neat completion to the set described in the security headers guide.
Worked example: maplestreetclinic.example
Maple Street Clinic's patient portal had done the headline headers properly — CSP and HSTS were in place — and its scan still returned the two quiet LOWs. The review that followed found the Referer point was not theoretical for a clinic: the portal's appointment links, sent to a third-party reminder service, carried patient-portal paths, and the pre-policy default on older browsers sent those full URLs onward to every embed on the page.
Response headers, maplestreetclinic.example/portal: content-security-policy: present strict-transport-security: present referrer-policy: (absent) -> LOW (-2) permissions-policy: (absent) -> LOW (-2)
Two lines in the server configuration closed both: Referrer-Policy: same-origin (stricter than the scanner's baseline suggestion, chosen because a clinic portal has no business sending referrers anywhere) and Permissions-Policy disabling camera, microphone, geolocation, usb and payment — none of which the portal uses. Score recovered: the full 4 points, and the clinic's privacy review gained two sentences it could state plainly to patients.
The five actions to take
Finishing the quiet end of the header set:
- Send Referrer-Policy: strict-origin-when-cross-origin as the baseline; choose same-origin or no-referrer for apps with sensitive URLs.
- Audit which browser features your site genuinely uses (camera for uploads? geolocation for store finders?) before writing Permissions-Policy.
- Deny everything unused: Permissions-Policy with empty allow-lists — camera=(), microphone=(), geolocation=(), usb=(), payment=().
- Apply both headers at the server or CDN level so every route inherits them, including error pages.
- Verify with curl -I on several routes and re-scan to watch both LOWs close.
Run a free BreachHunter assessment on your site →
Frequently asked questions
Browsers already default the referrer behavior. Why send the header?
Defaults differ across browsers and have changed over time; some clients still send full URLs. The header makes your intent uniform and auditable — an assessment can only credit what the server states, and “the browser probably handles it” is not a policy.
Will a strict Referrer-Policy break our analytics?
It changes what analytics sees as the referring URL (origin only, or nothing) for cross-origin hops. Same-site analytics keeps working. If a partner integration genuinely needs full referrers, scope the policy per-path rather than abandoning it site-wide.
Our site uses the camera for receipt uploads. How do we allow just that?
Permissions-Policy takes an allow-list per feature: camera=('self') permits your own origin to request it while third-party scripts remain denied. Scope by feature and origin — that granularity is the header's whole design.
Are these two headers worth prioritizing over a MEDIUM?
No — and the ratings agree with you. Their case is cost, not urgency: minutes to implement, zero breakage risk, and they complete the header set reviewers check. Do them in the same change window as the MEDIUM headers, not instead of anything.
Do these headers need to be on every response?
Yes — headers protect the response they travel with. Set them at the server or CDN layer (including API and error responses) rather than per-page, so no route ships unaccompanied. A curl -I sweep across templates is the cheap verification.