2.6 KiB
sidebar_label
| sidebar_label |
|---|
| CookieParam |
CookieParam interface
Cookie parameter object
Signature:
export interface CookieParam
Properties
|
Property |
Modifiers |
Type |
Description |
Default |
|---|---|---|---|---|
|
domain |
|
string |
Cookie domain. | |
|
expires |
|
number |
Cookie expiration date, session cookie if not set | |
|
httpOnly |
|
boolean |
True if cookie is http-only. | |
|
name |
string |
Cookie name. | ||
|
partitionKey |
|
string |
Cookie partition key. The site of the top-level URL the browser was visiting at the start of the request to the endpoint that set the cookie. If not set, the cookie will be set as not partitioned. | |
|
path |
|
string |
Cookie path. | |
|
priority |
|
Cookie Priority. Supported only in Chrome. | ||
|
sameParty |
|
boolean |
True if cookie is SameParty. Supported only in Chrome. | |
|
sameSite |
|
Cookie SameSite type. | ||
|
secure |
|
boolean |
True if cookie is secure. | |
|
sourceScheme |
|
Cookie source scheme type. Supported only in Chrome. | ||
|
url |
|
string |
The request-URI to associate with the setting of the cookie. This value can affect the default domain, path, and source scheme values of the created cookie. | |
|
value |
string |
Cookie value. |