SameSite class final

Cookie cross-site availability configuration.

The value of Cookie.sameSite, which defines whether an HTTP cookie is available from other sites or not.

Has three possible values: lax, strict and none.

Properties

hashCode int
The hash code for this object.
no setterinherited
name 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.
override

Operators

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

Constants

lax → const SameSite
Default value, cookie with this value will generally not be sent on cross-site requests, unless the user is navigated to the original site.
none → const SameSite
Cookie with this value will be sent in all requests.
strict → const SameSite
Cookie with this value will never be sent on cross-site requests.
values → const List<SameSite>