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: 155Edge
12–86Not supported
87+Supportedsince Nov 19, 2020
Current: 154Firefox
1–139Not supported
140+Supportedsince Jun 24, 2025
Current: 157Safari
✕Not supportedup to 27
Current: 27MobileChrome Android
18–86Not supported
87+Supportedsince Nov 17, 2020
Current: 155Firefox Android
4–139Not supported
140+Supportedsince Jun 24, 2025
Current: 157Safari iOS
✕Not supportedup to 27
Current: 27How 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
}Documentation (MDN)
Specification
Usage share
Sub-features
Support for each part of the feature (24). The overall table above shows when the whole feature works.
| Sub-feature | Chrome | Edge | Firefox | Safari | Chrome Android | Firefox Android | Safari iOS |
|---|---|---|---|---|---|---|---|
| CookieChangeEvent | 87 | 87 | 140 | 18.4 | 87 | 140 | 18.4 |
| CookieChangeEvent.CookieChangeEvent | 87 | 87 | 140 | 18.4 | 87 | 140 | 18.4 |
| CookieChangeEvent.changed | 87 | 87 | 140 | 18.4 | 87 | 140 | 18.4 |
| CookieChangeEvent.deleted | 87 | 87 | 140 | 18.4 | 87 | 140 | 18.4 |
| CookieStore | 87 | 87 | 140 | 18.4 | 87 | 140 | 18.4 |
| CookieStore.change_event | 87 | 87 | 140 | 18.4 | 87 | 140 | 18.4 |
| CookieStore.delete | 87 | 87 | 140 | 18.4 | 87 | 140 | 18.4 |
| CookieStore.get | 87 | 87 | 140 | 18.4 | 87 | 140 | 18.4 |
| CookieStore.get.name_return_property | 87 | 87 | 140 | 18.4 | 87 | 140 | 18.4 |
| CookieStore.get.value_return_property | 87 | 87 | 140 | 18.4 | 87 | 140 | 18.4 |
| CookieStore.getAll | 87 | 87 | 140 | 18.4 | 87 | 140 | 18.4 |
| CookieStore.set | 87 | 87 | 140 | 18.4 | 87 | 140 | 18.4 |
| CookieStoreManager | 87 | 87 | 140 | ✕ | 87 | 140 | ✕ |
| CookieStoreManager.getSubscriptions | 87 | 87 | 140 | ✕ | 87 | 140 | ✕ |
| CookieStoreManager.subscribe | 87 | 87 | 140 | ✕ | 87 | 140 | ✕ |
| CookieStoreManager.unsubscribe | 87 | 87 | 140 | ✕ | 87 | 140 | ✕ |
| ExtendableCookieChangeEvent | 87 | 87 | 140 | ✕ | 87 | 140 | ✕ |
| ExtendableCookieChangeEvent.ExtendableCookieChangeEvent | 87 | 87 | 140 | ✕ | 87 | 140 | ✕ |
| ExtendableCookieChangeEvent.changed | 87 | 87 | 140 | ✕ | 87 | 140 | ✕ |
| ExtendableCookieChangeEvent.deleted | 87 | 87 | 140 | ✕ | 87 | 140 | ✕ |
Show 4 more
| Sub-feature | Chrome | Edge | Firefox | Safari | Chrome Android | Firefox Android | Safari iOS |
|---|---|---|---|---|---|---|---|
| ServiceWorkerGlobalScope.cookieStore | 87 | 87 | 140 | 18.4 | 87 | 140 | 18.4 |
| ServiceWorkerGlobalScope.cookiechange_event | 87 | 87 | 140 | ✕ | 87 | 140 | ✕ |
| ServiceWorkerRegistration.cookies | 87 | 87 | 140 | ✕ | 87 | 140 | ✕ |
| Window.cookieStore | 87 | 87 | 140 | 18.4 | 87 | 140 | 18.4 |