SameSite

SameSite values.

Entries

Link copied to clipboard

Cookies are sent in both first-party and cross-origin requests.

Link copied to clipboard

Cookies are sent in a first-party context, also when following a link to the origin site.

Link copied to clipboard

Cookies are only sent in a first-party context (i.e. not when following a link to the origin site).

Functions

Link copied to clipboard
Link copied to clipboard
open fun valueOf(name: String): Cookie.SameSite

Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Link copied to clipboard

Returns an array containing the constants of this enum type, in the order they're declared. This method may be used to iterate over the constants.