RequestReferrerPolicy enum

Specifies the referrer policy to use for the request.

Inheritance
Available extensions

Values

strictOriginWhenCrossOrigin → const RequestReferrerPolicy

Send the origin, path, and query string when performing a same-origin request. For cross-origin requests send the origin (only) when the protocol security level stays same (HTTPS→HTTPS). Don't send the Referer header to less secure destinations (HTTPS→HTTP).

const RequestReferrerPolicy('strict-origin-when-cross-origin')
noReferrer → const RequestReferrerPolicy

The Referer header will be omitted: sent requests do not include any referrer information.

const RequestReferrerPolicy('no-referrer')
noReferrerWhenDowngrade → const RequestReferrerPolicy

Send the origin, path, and query string in Referer when the protocol security level stays the same or improves (HTTP→HTTP, HTTP→HTTPS, HTTPS→HTTPS). Don't send the Referer header for requests to less secure destinations (HTTPS→HTTP, HTTPS→file).

const RequestReferrerPolicy('no-referrer-when-downgrade')
sameOrigin → const RequestReferrerPolicy

Send the origin, path, and query string for same-origin requests. Don't send the Referer header for cross-origin requests.

const RequestReferrerPolicy('same-origin')
origin → const RequestReferrerPolicy

Send only the origin in the Referer header. For example, a document at https://example.com/page.html will send the referrer https://example.com/.

const RequestReferrerPolicy('origin')
strictOrigin → const RequestReferrerPolicy

Send only the origin when the protocol security level stays the same (HTTPS→HTTPS). Don't send the Referer header to less secure destinations (HTTPS→HTTP).

const RequestReferrerPolicy('strict-origin')
originWhenCrossOrigin → const RequestReferrerPolicy

When performing a same-origin request to the same protocol level (HTTP→HTTP, HTTPS→HTTPS), send the origin, path, and query string. Send only the origin for cross origin requests and requests to less secure destinations (HTTPS→HTTP).

const RequestReferrerPolicy('origin-when-cross-origin')
unsafeUrl → const RequestReferrerPolicy

Send the origin, path, and query string when performing any request, regardless of security.

const RequestReferrerPolicy('unsafe-url')

Properties

hashCode int
The hash code for this object.
no setterinherited
index int
A numeric identifier for the enumerated value.
no setterinherited
name String

Available on Enum, provided by the EnumName extension

The name of the enum value.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
value String
Enum string value that can be used in raw RequestInit.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
override

Operators

operator ==(Object other) bool
The equality operator.
inherited

Constants

values → const List<RequestReferrerPolicy>
A constant List of the values in this enum, in order of their declaration.