Home > tough-cookie > SetCookieOptions
Configuration options used when calling CookieJar.setCookie(...)
Signature:
export interface SetCookieOptions
Property |
Modifiers |
Type |
Description |
---|---|---|---|
boolean | undefined |
(Optional) Indicates if this is an HTTP or non-HTTP API. Affects HttpOnly cookies. Defaults to | ||
boolean | undefined |
(Optional) Silently ignore things like parse errors and invalid domains. Store errors aren't ignored by this option. Defaults to | ||
boolean | undefined |
(Optional) Controls if a cookie string should be parsed using Defaults to | ||
Date | undefined |
(Optional) Forces the cookie creation and access time of cookies to this value when stored. Defaults to | ||
'strict' | 'lax' | 'none' | undefined |
(Optional) Set this to 'none', 'lax', or 'strict' to enforce SameSite cookies upon storage.
Defaults to |