This repository has been archived by the owner on Sep 26, 2022. It is now read-only.
decodeURIComponent
when getting cookies and encodeURIComponent
when setting them
#18
Milestone
Describe the bug
All web frameworks encode Cookies with a function similar to
encodeURIComponent
(eg. Laravel XSRF-TOKEN) and consequentially need to be decoded withdecodeURIComponent
when retrived byHttp.getCookies
(and encoded when set).Expected behavior
Cookies should be encoded with
encodeURIComponent
when set and decoded withdecodeURIComponent
when retrieved.Additional context
https://stackoverflow.com/questions/1969232/what-are-allowed-characters-in-cookies/1969339#1969339
https://stackoverflow.com/questions/49205195/should-cookie-values-be-url-encoded
The text was updated successfully, but these errors were encountered: