8000 Add cookie accessor/setter methods? · Issue #707 · w3c/ServiceWorker · GitHub
[go: up one dir, main page]

Skip to content

Add cookie accessor/setter methods? #707

@slightlyoff

Description

@slightlyoff

In keeping with our approach of only adding APIs as-needed, we've had a request come in from @cramforce for access to cookies from the SW context.

We'll need something asynchronous; e.g.:

self.getCookies().then(...);
self.setCookies().then(...);

I'm afraid it won't lock, so might get out of sync with documents more easily than script access does today, but we should perhaps try it out and see how it goes.

While we're at it: do we want more structured cookie types for both these records and the cookies entries in Response objects?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0