CookieData
Index
Properties
name
The name of the cookie.
value
The value of the cookie.
optionaldomain
The domain this cookie is visible to.
Defaults to the current browsing context’s document’s URL when setting a cookie.
optionalpath
The cookie path. Defaults to “/“ when adding a cookie.
optionalexpiry
The Timestamp describing the point in time when this cookie expires.
optionalhttpOnly
Whether the cookie is an HTTP-only cookie.
Defaults to false
when adding a new cookie.
optionalsecure
Whether the cookie is a secure cookie.
Defaults to false
when adding a new cookie.
optionalsameSite
Whether the cookie applies to a SameSite
policy.
Defaults to None
if omitted when adding a cookie.
A data structure describing a Cookie to be set, or one that’s been read.
Learn more