ReferrerPolicy enumeration

ReferrerPolicy enumeration

Specifies the referrer policy to be used when fetching resources.

The ReferrerPolicy type exposes the following members:

Fields

FieldDescription
NONENo referrer policy is set.
NO_REFERRERThe Referer header will not be sent.
NO_REFERRER_WHEN_DOWNGRADEThe Referer header will not be sent to origins with less security (HTTPS -> HTTP).
SAME_ORIGINThe Referer header will be sent for same-origin requests only.
ORIGINOnly the origin of the document will be sent as the Referer header.
STRICT_ORIGINOnly the origin of the document will be sent as the Referer header for secure contexts.
ORIGIN_WHEN_CROSS_ORIGINThe full URL will be sent as the Referer header for same-origin requests, but only the origin for cross-origin requests.
STRICT_ORIGIN_WHEN_CROSS_ORIGINOnly the origin of the document will be sent as the Referer header for same-origin requests, but no header for cross-origin requests in insecure contexts.
UNSAFE_URLThe full URL, including the path and query string, will always be sent as the Referer header.

See Also