CookiesSetDetails

external interface CookiesSetDetails(source)

Properties

Link copied to clipboard
abstract external var domain: String?

The domain of the cookie; this will be normalized with a preceding dot so that it's also valid for subdomains. Empty by default if omitted.

Link copied to clipboard
abstract external var expirationDate: Double?

The expiration date of the cookie as the number of seconds since the UNIX epoch. If omitted then the cookie becomes a session cookie and will not be retained between sessions.

Link copied to clipboard
abstract external var httpOnly: Boolean?

Whether the cookie should be marked as HTTP only. Defaults to false.

Link copied to clipboard
abstract external var name: String?

The name of the cookie. Empty by default if omitted.

Link copied to clipboard
abstract external var path: String?

The path of the cookie. Empty by default if omitted.

Link copied to clipboard
abstract external var sameSite: CookiesSetDetailsSameSite?

The Same Site policy to apply to this cookie. Can be unspecified, no_restriction, lax or strict. Default is lax.

Link copied to clipboard
abstract external var secure: Boolean?

Whether the cookie should be marked as Secure. Defaults to false unless Same Site=None attribute is used.

Link copied to clipboard
abstract external var url: String

The URL to associate the cookie with. The promise will be rejected if the URL is invalid.

Link copied to clipboard
abstract external var value: String?

The value of the cookie. Empty by default if omitted.