Skip to content
websniffer.click

Referrer-Policy

Response header, security

Controls how much of the current URL is sent in the Referer header to other pages.

Referrer-Policy: strict-origin-when-cross-origin

URLs can contain session tokens, search terms or personal data. strict-origin-when-cross-origin, the default in current browsers, sends the full URL within your site, only the origin to other HTTPS sites, and nothing when going from HTTPS to HTTP.

Setting it explicitly documents your intent and covers older browsers.

Recommended value

strict-origin-when-cross-origin

Check it on a live site

The security header check grades this header together with the others that protect visitors.

Specification: W3C Referrer Policy