ServiceWorkerRegistration: thuộc tính cookies
Limited availability
This feature is not Baseline because it does not work in some of the most widely-used browsers.
Secure context: This feature is available only in secure contexts (HTTPS), in some or all supporting browsers.
Note: This feature is available in Service Workers.
Thuộc tính chỉ đọc cookies của giao diện ServiceWorkerRegistration trả về một tham chiếu đến giao diện CookieStoreManager, cho phép một ứng dụng web đăng ký và hủy đăng ký các sự kiện thay đổi cookie trong một service worker. Đây là điểm truy cập cho Cookie Store API.
Giá trị
Một đối tượng CookieStoreManager.
Đặc tả kỹ thuật
| Specification |
|---|
| Cookie Store API> # dom-serviceworkerregistration-cookies> |