-
Notifications
You must be signed in to change notification settings - Fork 19
Description
Hi @markcellus, thanks for this polyfill, really cool!
I wanted to use it to teach using a modern cookies API to our students at @upleveled, but quickly ran into issues because of an HTTP-only dev server (a very common out-of-the-box configuration among tooling - it often takes work to set up a secure HTTPS dev server). I had to discard the idea of teaching cookieStore again unfortunately.
Would there be interest in mirroring the feature below that just recently received the Intent to Ship status?
Summary
The Cookie Store API exposes HTTP cookies to service workers and offers an asynchronous alternative to document.cookie. This change is about exposing it to all secure contexts by including allowing local origins (127.0.0.1, localhost address, file://...).
This allows developers to quickly experiment things locally, without the need to set up a HTTPs server.
https://groups.google.com/a/chromium.org/g/blink-dev/c/ekdeaj09c0w