GitHunt
TA

tabatkins/cookie-store

Asynchronous access to cookies from JavaScript

Cookie Store API

CI

This repository documents an API for accessing HTTP cookies asynchronously from
Document and Service Worker global contexts.

The API has a test suite in the
Web Platform Tests project.

Resources

This API is inspired by and loosely based on the following discussions.

cookie change events
is a concurrently developed API proposal that also addresses the synchronous
nature of document.cookie.

The Cookie Store API has also been discussed in the following places.

The best resource for understanding the deep technical aspects of cookies is
the most recent draft of
RFC 6265bis.

This API aims to replace
document.cookie
and
navigator.cookieEnabled.

This API is also known as the Async Cookies API.

Languages

Bikeshed100.0%
Apache License 2.0
Created July 11, 2023
Updated July 28, 2025