ReferrerPolicyType enum
The Referrer-Policy HTTP header controls how much referrer information (sent with the Referer header) should be included with requests.
Values
- noReferrer → const ReferrerPolicyType
-
The Referer header will be omitted: sent requests do not include any referrer information.
const ReferrerPolicyType('no-referrer')
- noReferrerWhenDowngrade → const ReferrerPolicyType
-
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 ReferrerPolicyType('no-referrer-when-downgrade')
- origin → const ReferrerPolicyType
-
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 ReferrerPolicyType('origin')
- originWhenCrossOrigin → const ReferrerPolicyType
-
When performing a same-origin request to the same protocol level (HTTP→HTTP, HTTPS→HTTPS), send the origin, path, and query string.
const ReferrerPolicyType('origin-when-cross-origin')
- sameOrigin → const ReferrerPolicyType
-
Send the origin, path, and query string for same-origin requests. Don't send the Referer header for cross-origin requests.
const ReferrerPolicyType('same-origin')
- strictOrigin → const ReferrerPolicyType
-
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 ReferrerPolicyType('strict-origin')
- strictOriginWhenCrossOrigin → const ReferrerPolicyType
-
Send the origin, path, and query-string when performing a same-origin request.
const ReferrerPolicyType('strict-origin-when-cross-origin')
- unSafeUrl → const ReferrerPolicyType
-
Send the origin, path, and query string when performing any request, regardless of security.
const ReferrerPolicyType('unsafe-url')
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- index → int
-
A numeric identifier for the enumerated value.
no setterinherited
- nativeValue → String
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Constants
-
values
→ const List<
ReferrerPolicyType> - A constant List of the values in this enum, in order of their declaration.