cookie-store icon indicating copy to clipboard operation
cookie-store copied to clipboard

When getting cookies only expose their name and value

Open annevk opened this issue 1 year ago • 2 comments

As suggested in https://github.com/WebKit/standards-positions/issues/36#issuecomment-1620515474 which builds upon feedback from Ehsan https://wicg.github.io/cookie-store/#dictdef-cookielistitem should only have name and value members. This would keep parity with document.cookie in terms of what cookie aspects end up being exposed.

This is also what we plan to implement in WebKit.

annevk avatar Aug 15 '24 11:08 annevk

cc @szewai @RupinMittal @bakulf

annevk avatar Aug 15 '24 11:08 annevk

Firefox is experimenting with the CookieStore API, and we have implemented what @annevk suggests here. get and getAll return only names and values.

bakulf avatar Sep 24 '24 13:09 bakulf