ServiceWorkerGlobalScope:cookieStore 属性

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.

安全上下文: 此项功能仅在一些支持的浏览器安全上下文(HTTPS)中可用。

备注: 此特性仅在 Service Worker 中可用。

ServiceWorkerGlobalScope 接口的 cookieStore 只读属性返回 Service Worker 关联的 CookieStore 对象的引用。

CookieStore 对象实例。

规范

Specification
Cookie Store API
# dom-serviceworkerglobalscope-cookiestore

浏览器兼容性