← Back to release summary

Cookie Store API

Category
Offline / Storage
Type
New or changed feature
Status
Enabled by default (Chrome 87)
Intent stage
Shipped

Summary

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.

Standards & signals

Docs: https://developers.google.com/web/updates/2018/09/asynchronous-access-to-http-cookies https://docs.google.com/document/d/1ak6JzOMMO5q3dXvu4mHFWR-LLvaDc09XDvdeJZLtZd4/

Samples: https://wicg.github.io/cookie-store/explainer.html https://github.com/web-platform-tests/wpt/tree/master/cookie-store

Explainers: https://github.com/WICG/cookie-store/blob/main/explainer.md

View on chromestatus.com