Referrer-Policy
Referrer-Policy is an HTTP response header that controls how much of the page URL the browser sends to other pages in the Referer header. The default is strict-origin-when-cross-origin.
HTTP header
Also called referrerpolicy
Updated
On this page
Example
HTML
<iframe src="https://partner.example/widget" referrerpolicy="no-referrer" ></iframe>
The browser sends no Referer header when it loads this frame, so the partner does not see your page URL.
How to set it
Send the header to set one policy for the whole page. Use the referrerpolicy attribute to change it for one element.
Referrer-Policy: strict-origin-when-cross-origin
The header can list fallback values, for example no-referrer, strict-origin-when-cross-origin. The browser uses the last value it knows. The attribute takes only one value.
Learn more
Sources