The Cookie Store API exposes HTTP cookies to service workers and offers an asynchronous alternative to document.cookie.
Motivation
Today, cookies have extremely high usage, however the interface to cookies have been a source of complexity and performance issues. The Cookie Store API aims to improve this by providing an asynchronous alternative to document.cookie and exposing HTTP cookies to service workers which will also come with performance benefits. Its interface also encourages developers to make better decisions about security.
Demos
Documentation
Specification
Status in Chromium
Enabled by default (tracking bug) in:
- Chrome for desktop release 87
- Chrome for Android release 87
- Android WebView release 87
Consensus & Standardization
After a feature ships in Chrome, the values listed here are not guaranteed to be up to date.
Owner
Intent to Prototype url
Intent to Prototype threadSearch tags
cookie, cookies, polling, ServiceWorker, document.cookie,Last updated on 2021-01-13