Firefox Tomorrow

web api instance property

ServiceWorkerRegistration: cookies property

View on MDN ↗

Secure contextAvailable in workers

The cookies read-only property of the ServiceWorkerRegistration interface returns a reference to the CookieStoreManager interface, which enables a web app to subscribe to and unsubscribe from cookie change events in a service worker. This is an entry point for the Cookie Store API.

Value

A CookieStoreManager object.

Specifications

SpecificationsStandards references are available on the canonical MDN page.

Browser compatibility

Browser compatibilityCompatibility data is available on the canonical MDN page.