OptionaldomainThe domain of the cookie. If omitted, the cookie becomes a host-only cookie.
OptionalexpirationThe expiration date of the cookie as the number of seconds since the UNIX epoch. If omitted, the cookie becomes a session cookie.
OptionalfirstThe first-party domain of the cookie. This attribute is required if First-Party Isolation is enabled.
OptionalhttpWhether the cookie should be marked as HttpOnly. Defaults to false.
OptionalnameThe name of the cookie. Empty by default if omitted.
OptionalpartitionThe storage partition, if the cookie is part of partitioned storage. By default, non-partitioned storage is used.
OptionalpathThe path of the cookie. Defaults to the path portion of the url parameter.
OptionalsameThe cookie's same-site status.
OptionalsecureWhether the cookie should be marked as Secure. Defaults to false.
OptionalstoreThe 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.
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.
OptionalvalueThe value of the cookie. Empty by default if omitted.
Details about the cookie being set.