Referrer Leakage Prevention
Description
Referrer Policy is used to prevent referer header leakage. Chrome has changed a referrer policy defaults and is now using “strict-origin-when-cross-origin” as the default policy, instead of “no-referrer-when-downgrade”. On cross-origin requests made from the web page without a referrer policy set on it, default configuration of Chrome will set “strict-origin-when-cross-origin” and prevent the Referer header leakage by disclosing initiating origin only instead of full URL.
Let’s take an example, Cross-origin request, sent from https://notsosecure.com/user/profile?email=test9@notsosecure.com to https://notsosecureapp.com/:
Previous default settings: “no-referrer-when-downgrade”, the Referer header with value “https://notsosecure.com/user/profile?email=test9@notsosecure.com” will be sent.
Now in Chrome 85+ with default settings “strict-origin-when-cross-origin”, the Referer header with value “https://notsosecure.com” will be sent.
Browser(s)
- Chrome 85+
Reference(s)
Back to listing page