Referrerpolicy
API reference › HTML Attribute › Values › Referrerpolicy
Represents referrer policy values for the referrerpolicy attribute and Referrer-Policy header.
See also: https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Headers/Referrer-Policy, https://w3c.github.io/webappsec-referrer-policy/.
| Case | Value | Description |
|---|---|---|
NO_REFERRER | 'no-referrer' | no-referrer - Referer header will be omitted entirely: requests do not include any referrer information. |
NO_REFERRER_WHEN_DOWNGRADE | 'no-referrer-when-downgrade' | no-referrer-when-downgrade - Send the full referrer (origin, path and query) when the security level stays the same or improves. Do not send the Referer header to less secure destinations (HTTPS → HTTP). |
ORIGIN | 'origin' | origin - Send only the origin (scheme, host and port) as the Referer header value. |
ORIGIN_WHEN_CROSS_ORIGIN | 'origin-when-cross-origin' | origin-when-cross-origin - Send the full referrer for same-origin requests. |
SAME_ORIGIN | 'same-origin' | same-origin - Send the full referrer for same-origin requests. |
STRICT_ORIGIN | 'strict-origin' | strict-origin - Send only the origin when the protocol security level stays the same (HTTPS → HTTPS). |
STRICT_ORIGIN_WHEN_CROSS_ORIGIN | 'strict-origin-when-cross-origin' | strict-origin-when-cross-origin (default) - Send the full referrer for same-origin requests. |
UNSAFE_URL | 'unsafe-url' | unsafe-url - Send the full URL (origin, path and query) in all cases, regardless of security. |