Page MenuHomePhabricator

Add "Referrer-Policy: no-referrer" to standard HTTP headers
ClosedPublic

Authored by epriestley on Feb 27 2018, 8:19 PM.
Tags
None
Referenced Files
F18852294: D19144.id.diff
Fri, Oct 31, 7:51 AM
F18834350: D19144.id.diff
Sun, Oct 26, 8:08 AM
F18812572: D19144.id45866.diff
Mon, Oct 20, 10:28 AM
F18741776: D19144.diff
Thu, Oct 2, 4:04 PM
F18509365: D19144.id.diff
Sep 5 2025, 3:22 AM
F18502243: D19144.diff
Sep 4 2025, 10:18 PM
F18094918: D19144.id.diff
Aug 7 2025, 10:25 PM
F18087619: D19144.diff
Aug 6 2025, 4:41 AM
Subscribers
None

Details

Summary

Ref T4340. Some browsers respect this header and referrers are a plague upon the earth.

Also, upgrade "never" to the more modern value "no-referrer".

Test Plan

In Safari, Firefox and Chrome, disabled rel="noreferrer" on links and generated a normal link to an external site. Then clicked it and checked if a referrer was sent.

  • Safari respects meta only, but "no-referrer" is fine.
  • Firefox respects both (either the header or meta tag are individually sufficient to stop referrers).
  • Chrome respects both (same as Firefox).

Diff Detail

Repository
rP Phabricator
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

This revision was not accepted when it landed; it landed in state Needs Review.Feb 27 2018, 8:59 PM
This revision was automatically updated to reflect the committed changes.