You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm using jshttp/cookie server side (within an AWS Lambda@Edge function) to parse cookies.
I'm not personally handling the cookie creation and I only want to parse it.
Cookie names created by my vendor contains special characters that are encoded.
I would have the option to get the decoded cookie names like how it is done with the cookie values.
Is this behaviour by design? Is it legitimate to decode the cookie name when parsing?
If so, is cookie name decoding a feature that you may consider?
The text was updated successfully, but these errors were encountered:
I'm going to close this for now since the question was answered.
I'll also add that it was probably not added since decoding of a name would probably complicate adding them to an object. It is likely decoding/encoding the value (at least by default) will eventually be removed, as it has had multiple issues opened that it is unexpected behavior. The RFC does state that servers SHOULD encoding the cookie value if needed, but makes no such statement on the cookie value, so seems to fall outside the cookie spec to mess with the cookie name.
I'm using jshttp/cookie server side (within an AWS Lambda@Edge function) to parse cookies.
I'm not personally handling the cookie creation and I only want to parse it.
Cookie names created by my vendor contains special characters that are encoded.
I would have the option to get the decoded cookie names like how it is done with the cookie values.
Is this behaviour by design? Is it legitimate to decode the cookie name when parsing?
If so, is cookie name decoding a feature that you may consider?
The text was updated successfully, but these errors were encountered: