Referrer-Policy HTTP Origin: Network OSI layer 7 · Application Last updated 18 Nov 2026

Referer header missing or truncated: Referrer-Policy strips it

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

Exact message you may see Referer header missingReferrer-Policy no-referrerHTTP_REFERER emptyReferer is empty cross-origindocument.referrer is empty
Seen on: HTTP Browser PHP

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?

🔧 Still not fixed?

Many errors look alike. If the steps above didn’t solve it, one of these is probably what you’re facing:

Where this error sits

Origin: Network. Errors that are often confused with or caused by this one (click to open):

1011 — Cloudflare Error 1011: Access denied (Hotlinking denied) (Cloudflare)1011400 — 400 Bad Request: Request Header Or Cookie Too Large (HTTP)400400 — 400 Bad Request: invalid character in header (HTTP)400401 — 401 Unauthorized without WWW-Authenticate header (HTTP)401403 — HTTP 403 Forbidden (HTTP)403CORS on errors — CORS error hides the real failure: Access-Control-Allow-Origin is missing on 4xx/5xx responses (HTTP)CORS on errorsinvalid csrf token — ForbiddenError: invalid csrf token (EBADCSRFTOKEN) (Authentication)invalid csrf tokenReferrer-…

Explore the map of this error Full error map →

🧠 Still stuck? Analyze your error

Paste the full message, response headers or stack trace — we'll detect the platform and point to the most likely cause.

💬 What worked for others

No tips yet — did something else fix this for you?

Share what worked for you

Tips are checked by an editor before they appear. Links are removed.