CookieStore
The CookieStore interface of the Cookie Store API provides methods for getting and setting cookies asynchronously from either a page or a service worker. Available only in secure contexts.
Functions
The delete() method of the CookieStore interface deletes a cookie that matches the given name or options object.
The delete() method of the CookieStore interface deletes a cookie that matches the given name or options object.
The get() method of the CookieStore interface returns a Promise that resolves to a single cookie matching the given name or options object.
The getAll() method of the CookieStore interface returns a Promise that resolves as an array of cookies that match the name or options passed to it.
The getAll() method of the CookieStore interface returns a Promise that resolves as an array of cookies that match the name or options passed to it.
The get() method of the CookieStore interface returns a Promise that resolves to a single cookie matching the given name or options object.
The set() method of the CookieStore interface sets a cookie with the given name and value or options object.