Back to Content

ServiceWorkerRegistration: cookies property

files/en-us/web/api/serviceworkerregistration/cookies/index.md

latest632 B
Original Source

{{APIRef("Cookie Store API")}}{{SecureContext_Header}}{{AvailableInWorkers("window_and_service")}}

The cookies read-only property of the {{domxref("ServiceWorkerRegistration")}} interface returns a reference to the {{domxref("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 {{domxref("CookieStoreManager")}} object.

Specifications

{{Specifications}}

Browser compatibility

{{Compat}}