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

Specification link


Specification being incubated in a Community Group

Status in Chromium

Blink>Storage>CookiesAPI


Enabled by default (tracking bug)

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 thread

Search tags

cookie, cookies, polling, ServiceWorker, document.cookie,

Last updated on 2021-01-13