Kavach

Fix · nginx

Fix “Referrer-Policy” on nginx

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

add_header Referrer-Policy "strict-origin-when-cross-origin" always;

Verify the fix

Re-run the Referrer-Policy check after deploying. Test config changes in staging first and keep a rollback: a wrong header can break a site faster than a missing one.

Other stacks: Apache · Caddy · Express / Node · Cloudflare

Scan your site free → Monitor it continuously