Skip to content

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

@karlhorky

Description

@karlhorky

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions