SameSite

enum SameSite : Enum<SameSite>

The SameSite attribute of the Set-Cookie HTTP response header allows you to declare if your cookie should be restricted to a first-party or same-site context.

Entries

STRICT
Link copied to clipboard
STRICT("Strict")
Cookies will only be sent in a first-party context and not be sent along with requests initiated by third party websites.
LAX
Link copied to clipboard
LAX("Lax")
Cookies are allowed to be sent with top-level navigations and will be sent along with GET request initiated by third party website.
NONE
Link copied to clipboard
NONE("None")
Cookies will be sent in all contexts, i.e sending cross-origin is allowed.

Types

Companion
Link copied to clipboard
object Companion

Functions

compareTo
Link copied to clipboard
operator override fun compareTo(other: SameSite): Int
describeConstable
Link copied to clipboard
override fun describeConstable(): Optional<Enum.EnumDesc<SameSite>>
equals
Link copied to clipboard
operator override fun equals(other: Any?): Boolean
finalize
Link copied to clipboard
fun finalize()
getDeclaringClass
Link copied to clipboard
fun getDeclaringClass(): Class<SameSite>
hashCode
Link copied to clipboard
override fun hashCode(): Int
toString
Link copied to clipboard
open override fun toString(): String

Properties

name
Link copied to clipboard
val name: String
ordinal
Link copied to clipboard
val ordinal: Int
value
Link copied to clipboard
val value: String