CSACyber Security AuditWebbandflow
HTTP security headers

Referrer-Policy

A header that controls how much address information is shared when users follow links away from your site.

What it is

When a user clicks a link or loads a resource, the browser normally tells the destination which page they came from. Referrer-Policy lets a site control how much of that address, if any, is shared. Restricting it prevents sensitive information in URLs from leaking to third parties.

Why it matters

Overly generous referrer sharing can leak sensitive data embedded in URLs, such as tokens or internal paths, to external sites.

How to fix it

Set a privacy-preserving Referrer-Policy such as strict-origin-when-cross-origin or no-referrer, and avoid placing secrets in URLs.

Related terms

References

← Back to the glossary