-
Notifications
You must be signed in to change notification settings - Fork 86
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
Any interest in adding the 'samesite' flag to cookies? #376
Comments
I think this would be good. @asvetlov, would you accept a PR to add |
Monkey-patching is not an option. We need two pull requests: one for aiohttp and another for aiohttp-session. I would postpone the fix until Azure and Travis will get Python 3.8 in their build matrices. Upd: |
Discuss on aio-libs/aiohttp#4224 |
I was interested in enabling the samesite cookie flag and was surprised to find it doesn't seem to be supported (or I completely missed how to enable). I guess it is not yet an 'official' RFC documented flag, so maybe that is the reason?
I seem to have been able to get it to work here (on Chrome/Firefox anyway) by adding the parameter to:
in the same way that the other cookie params are handled.
One also has to 'monkey patch' the dependency http.cookies.Morsel._reserved to include the 'samesite' keyword (python 3.7.3).
I wouldn't mind submitting a PR but thought I'd ask to see if there is any interest or objection.
The text was updated successfully, but these errors were encountered: