Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support local origins like http://localhost, file://, etc? #141

Open
karlhorky opened this issue Jun 12, 2021 · 1 comment
Open

Support local origins like http://localhost, file://, etc? #141

karlhorky opened this issue Jun 12, 2021 · 1 comment

Comments

@karlhorky
Copy link
Contributor

karlhorky commented Jun 12, 2021

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

@markcellus
Copy link
Owner

@karlhorky thanks for filing the issue and for the kind words :) We're all very excited about the CookieStore specification as well. But the repo is currently still in an experimental stage. We're keeping close watch of the spec, but don't want to get too ahead of ourselves because, as you may already know, the spec can change at any time 😉 .

If urgent, it may be better to just fork and add the feature to the codebase yourself to use for your lessons. In fact, if you do that, it would be pretty easy to open your forked version of the feature into a pull request right against this repo.

Let me know if you have any other questions in the meantime and all the best with your coding bootcamp. It sounds very cool. 🙌

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants