coderef

Cookie storeLimited availability

The CookieStore API is an asynchronous and promise-based API for managing cookies. It does not rely on document and so is available to service workers as well.

Not yet supported in all major browsers — check the table and provide a fallback.

Browser support

DesktopChrome
1–86Not supported
87+Supportedsince Nov 17, 2020
Current: 155
Edge
12–86Not supported
87+Supportedsince Nov 19, 2020
Current: 154
Firefox
1–139Not supported
140+Supportedsince Jun 24, 2025
Current: 157
Safari
✕Not supportedup to 27
Current: 27
MobileChrome Android
18–86Not supported
87+Supportedsince Nov 17, 2020
Current: 155
Firefox Android
4–139Not supported
140+Supportedsince Jun 24, 2025
Current: 157
Safari iOS
✕Not supportedup to 27
Current: 27

How to use

Not supported in Safari, Safari iOS. Use feature detection below and provide a fallback (or a polyfill) for those browsers.

Example

Full syntax and examples are on MDN: CookieChangeEvent.

Feature detection

JS · check before using
if ("CookieStore" in globalThis) {
  // CookieStore is available
} else {
  // load a polyfill or use a fallback
}

Sub-features

Support for each part of the feature (24). The overall table above shows when the whole feature works.

Sub-featureChromeEdgeFirefoxSafariChrome AndroidFirefox AndroidSafari iOS
CookieChangeEvent878714018.48714018.4
CookieChangeEvent.CookieChangeEvent878714018.48714018.4
CookieChangeEvent.changed878714018.48714018.4
CookieChangeEvent.deleted878714018.48714018.4
CookieStore878714018.48714018.4
CookieStore.change_event878714018.48714018.4
CookieStore.delete878714018.48714018.4
CookieStore.get878714018.48714018.4
CookieStore.get.name_return_property878714018.48714018.4
CookieStore.get.value_return_property878714018.48714018.4
CookieStore.getAll878714018.48714018.4
CookieStore.set878714018.48714018.4
CookieStoreManager8787140✕87140✕
CookieStoreManager.getSubscriptions8787140✕87140✕
CookieStoreManager.subscribe8787140✕87140✕
CookieStoreManager.unsubscribe8787140✕87140✕
ExtendableCookieChangeEvent8787140✕87140✕
ExtendableCookieChangeEvent.ExtendableCookieChangeEvent8787140✕87140✕
ExtendableCookieChangeEvent.changed8787140✕87140✕
ExtendableCookieChangeEvent.deleted8787140✕87140✕
Show 4 more
Sub-featureChromeEdgeFirefoxSafariChrome AndroidFirefox AndroidSafari iOS
ServiceWorkerGlobalScope.cookieStore878714018.48714018.4
ServiceWorkerGlobalScope.cookiechange_event8787140✕87140✕
ServiceWorkerRegistration.cookies8787140✕87140✕
Window.cookieStore878714018.48714018.4