Skip to content

CookieAttributesCore

Cookie attributes as key value pair.

Properties

domain?: string

Specifies the Domain attribute to define the domain that the cookie belongs to.

path?: string

Specifies the Path attribute to define the path that must exist in the requested URL for the browser to send the cookie header.

secure?: string

Specifies the Secure attribute to indicate that the cookie should only be sent over HTTPS.

httpOnly?: string

Specifies the HttpOnly attribute to prevent JavaScript from accessing the cookie.

sameSite?: string

Specifies the SameSite attribute to control whether the cookie is sent with cross-site requests.

priority?: string

Specifies the Priority attribute to indicate the priority of the cookie.

See Also