ElectronCookiesSetDetails
Unofficial
Details used to set a cookie on an Electron session.
Import:
import type { ElectronCookiesSetDetails } from '@obsidian-typings/obsidian-catalyst-latest';Signature:
export interface ElectronCookiesSetDetailsProperties
| Property | Type | Description | |
|---|---|---|---|
| domain? | string | The domain of the cookie; normalized with a preceding dot so that it is also valid for subdomains. Empty by default if omitted. | |
| expirationDate? | number | 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. | |
| httpOnly? | boolean | Whether the cookie should be marked as HTTP only. | |
| name? | string | The name of the cookie. Empty by default if omitted. | |
| path? | string | The path of the cookie. Empty by default if omitted. | |
| sameSite? | 'lax' | 'no_restriction' | 'strict' | 'unspecified' | The Same Site policy to apply to this cookie. | |
| secure? | boolean | Whether the cookie should be marked as Secure. | |
| url | string | The URL to associate the cookie with. The promise will be rejected if the URL is invalid. | |
| value? | string | The value of the cookie. Empty by default if omitted. |