ReferrerPolicy Enum

ReferrerPolicy enumeration

Specifies the referrer policy to be used when fetching resources.

public enum ReferrerPolicy

Values

NameValueDescription
None0No referrer policy is set.
NoReferrer1The Referer header will not be sent.
NoReferrerWhenDowngrade2The Referer header will not be sent to origins with less security (HTTPS -> HTTP).
SameOrigin3The Referer header will be sent for same-origin requests only.
Origin4Only the origin of the document will be sent as the Referer header.
StrictOrigin5Only the origin of the document will be sent as the Referer header for secure contexts.
OriginWhenCrossOrigin6The full URL will be sent as the Referer header for same-origin requests, but only the origin for cross-origin requests.
StrictOriginWhenCrossOrigin7Only 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.
UnsafeUrl8The full URL, including the path and query string, will always be sent as the Referer header.

See Also