# Referer header missing or truncated: Referrer-Policy strips it

**Code:** `Referrer-Policy` · **Category:** HTTP · **Seen on:** HTTP, Browser, PHP

Your analytics, hotlink protection or CSRF check sees an empty or origin-only Referer because browsers apply a strict default policy.

## Meaning

Modern browsers default to `strict-origin-when-cross-origin`, and `Referrer-Policy: no-referrer` or HTTPS→HTTP navigation removes it entirely. Set a policy that fits your use (`same-origin` for internal checks), don't rely on Referer for security, and use `Origin` or tokens instead.

## Common causes

- `Referrer-Policy: no-referrer` header or meta tag
- HTTPS to HTTP navigation drops Referer
- Default strict-origin-when-cross-origin trimming the path
- `rel="noreferrer"` on links
- Privacy extensions

## Quick fix

1. Set `Referrer-Policy: strict-origin-when-cross-origin` (or the one you need)
2. Use tokens/Origin, not Referer, for checks
3. Avoid HTTP links from HTTPS pages

## Detailed fix by platform

### HTTP

1. `Referrer-Policy: strict-origin-when-cross-origin`

## How to diagnose

1. **Policy** — Which value?
2. **Navigation** — HTTPS to HTTP?
3. **Check** — Relies on Referer?

---
Source: [WhatIsMyError](https://whatismyerror.com/errors/http/referrer-policy-referer-missing)
