Skip to content

Directive: referrer

Ryan Parman edited this page Jun 14, 2024 · 6 revisions

Overview

Caution

Obsolete: The referrer directive existed in an earlier draft of the CSP Level 3 (Draft) specification, but was removed.

The referrer directive was meant to specify information in the Referer header (with a single r as this was a typo in the original spec) for links away from a page. This is deprecated and removed from browsers. In its place, see the Referrer-Policy header.

Required reading:

Fallbacks

referrer does not fallback to default-src.

Possible errors

  • CSP-0803 — [ERROR] directive %s was experimental in CSP3, but should now be removed from CSP policies

References

Clone this wiki locally