CookiesSetDetails

external interface CookiesSetDetails(source)

Properties

Link copied to clipboard
abstract 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 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 var httpOnly: Boolean?

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

Link copied to clipboard
abstract var name: String?

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

Link copied to clipboard
abstract var path: String?

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

Link copied to clipboard

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 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 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 var value: String?

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