Homestyx hydra
Diffusion hydra 9658249ac5a0

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

Description

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

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

Maniphest Tasks: T4340

Differential Revision: https://secure.phabricator.com/D19144

Details

Provenance
epriestleyAuthored on Feb 27 2018, 3:07 PM
sirocylPushed on Oct 16 2024, 5:49 AM
Parents
R1:dba4c4bdf6a8: Emit a "Content-Security-Policy" HTTP header
Branches
Unknown
Tags
Unknown

Event Timeline