SecurityResponse Header

Referrer-Policy

Controls how much referrer information (URL path and query parameters) is included when navigating away or loading external assets.

Recommended Production Value
Highly Recommended
strict-origin-when-cross-origin

Production Server Implementation

NGINX Configuration Snippet
add_header Referrer-Policy "strict-origin-when-cross-origin" always;

Directives & Syntax Breakdown

strict-origin-when-cross-origin

Sends full URL for same-origin, domain-only for HTTPS cross-origin, and zero referrer when downgrading to HTTP.

no-referrer

Never sends the Referer header under any circumstances for maximum privacy.

origin-when-cross-origin

Sends full path for same-origin requests, but only domain origin for third-party requests.

Common Security Hazards & Pitfalls

  • β€’Sensitive tokens, session IDs, or password reset parameters in URL query strings can leak to third parties if Referrer-Policy is permissive.
Frequently Asked Questions

Referrer-Policy - Questions & Answers

Common implementation questions, browser enforcement rules, and debugging.

Chrome, Firefox, and Safari default to "strict-origin-when-cross-origin" if the header is not specified.