-
Notifications
You must be signed in to change notification settings - Fork 57
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support SameSite cookie #50
Conversation
…ogic (awslabs#46) * Make produced cookies RFC 6265 compliant by URI encoding illegal characters. * Revise cookies parsing logic to fix issues with subdomains (awslabs#43 )
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for your contribution! There are a few small things that could be improved and it should be ready to merge
Please also update the readme with a new configuration parameter |
Hey @borisfba. Thanks for the review! Made documentation fixes/additions, and made sameSite optional! Not sure if I agree on the use of an enum here, if my solution doesn't satisfy your concern I will refactor to an enum (the difference is nit, happy to use an enum). Defined the allowed values directly below the union type and added a unit test as a mitigation. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
Issue # (if available): #47
Description of changes:
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.