Skip to content
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

add SameSite and Secure attribute to cookie #99

Closed
therealadityashankar opened this issue Dec 26, 2020 · 4 comments
Closed

add SameSite and Secure attribute to cookie #99

therealadityashankar opened this issue Dec 26, 2020 · 4 comments

Comments

@therealadityashankar
Copy link

got this warning on Firefox

image

@gaborfeher
Copy link
Contributor

What version of flask-seasurf are you using?

I am just another user of this package, but if I understand correctly, the latest released version (0.2.2) does not support setting the SameSite attribute. However, you can try using the HEAD commit from this repo (i.e. the latest unreleased version), which is better in this respect. There the default is SameSite=Lax and you can override it using the CSRF_COOKIE_SAMESITE flask config variable. One way to install the current HEAD version is adding the following line into your requirements.txt:

git+git://github.com/maxcountryman/flask-seasurf@4dedf270bba7caf3dbbc1d74bc11b8b22e1a4f78#egg=flask-seasurf

@therealadityashankar
Copy link
Author

thanks for the reply !
I can't use non-production ready (and production deployed) packages for my use case tbh,
I hope the latest version gets updated, but looking that the last package update was over a year back probably not

@gaborfeher
Copy link
Contributor

See also #75

@alanhamlett
Copy link
Collaborator

Released v1.0.0 today.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants