Details about the cookie being set.

interface _SetDetails {
    domain?: string;
    expirationDate?: number;
    firstPartyDomain?: string;
    httpOnly?: boolean;
    name?: string;
    partitionKey?: PartitionKey;
    path?: string;
    sameSite?: SameSiteStatus;
    secure?: boolean;
    storeId?: string;
    url: string;
    value?: string;
}
Index
domain?: string

The domain of the cookie. If omitted, the cookie becomes a host-only cookie.

expirationDate?: number

The expiration date of the cookie as the number of seconds since the UNIX epoch. If omitted, the cookie becomes a session cookie.

firstPartyDomain?: string

The first-party domain of the cookie. This attribute is required if First-Party Isolation is enabled.

httpOnly?: boolean

Whether the cookie should be marked as HttpOnly. Defaults to false.

name?: string

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

partitionKey?: PartitionKey

The storage partition, if the cookie is part of partitioned storage. By default, non-partitioned storage is used.

path?: string

The path of the cookie. Defaults to the path portion of the url parameter.

sameSite?: SameSiteStatus

The cookie's same-site status.

secure?: boolean

Whether the cookie should be marked as Secure. Defaults to false.

storeId?: string

The ID of the cookie store in which to set the cookie. By default, the cookie is set in the current execution context's cookie store.

url: string

The request-URI to associate with the setting of the cookie. This value can affect the default domain and path values of the created cookie. If host permissions for this URL are not specified in the manifest file, the API call will fail.

value?: string

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