-
Notifications
You must be signed in to change notification settings - Fork 319
Closed
Labels
Milestone
Description
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?
dandv, sisidovski, kenrick95, valioDOTch, tomalec and 7 morebrainkim