Cookie Store API - Web APIs | MDN
Secure context: This feature is available only in secure contexts (HTTPS), in some or all supporting browsers. Note: This feature is available in Service Workers. The Cookie Store API is an asynchronous API for managing cookies, available in windows and also service workers. The original method of getting and setting cookies involves working with document.cookie to get and set cookie information as a string of key/value pairs. In addition to this being cumbersome and error prone, it also has a host of issues in the context of modern web development. The document.cookie interface is synchronous, single-threaded, and blocking. When writing a cookie you must wait for the browser to update the string of all cookies. In addition, the reliance on document means that cookies cannot be accessed by service workers, as they cannot access the document object. The Cookie Store API provides an updated method of managing cookies. It is asynchronous and promise-based, therefore does not block the eve
Cookie Store API - Web APIs | MDN Skip to main content Skip to search Cookie Store API Baseline 2025 * Newly available Since June 2025, this feature works across the latest devices and browser versions. This feature might not work in older devices or browsers. Want more browser support for this feature? Tell us why. * Some parts of this feature may have varying levels of support. Learn more See full compatibility Secure context: This feature is available only in secure contexts (HTTPS), in some or all supporting browsers . Note: This feature is available in Service Workers . The Cookie Store A
Explore this link on the map →related reading
- Netflixnetflix.com
- Watch Society of the Snow | Netflix Official Sitenetflix.com
- Using HTTP cookies - HTTP | MDNdeveloper.mozilla.org
- Service Worker API - Web APIs | MDNdeveloper.mozilla.org
- Service worker overview | Workbox | Chrome for Developersdeveloper.chrome.com
- OpenAI Platformplatform.openai.com
- Markov's Salonmarkovs-salon.vercel.app
- SOOT SPIRALspiral.soot.com
- A service worker's life | Workbox | Chrome for Developersdeveloper.chrome.com
- Understanding The Web Security Model, Part IV: Cross-Origin Resource Sharing (CORS)educatedguesswork.org
- Shopify Live Globe 2025bfcm.shopify.com
- The service worker lifecycle | Articles | web.devweb.dev