Replies: 3 comments 5 replies
|
Right now, we have at least three implementations:
@frankie567 @simonw @tomchristie opinions on this? At least a note in the documentation is worth it. |
1 reply
|
Is this really worth doing? CSRF attacks are stopped by same-site cookies, supported by all mainstream browsers for years and the default in most cases too. Almost everybody should be skipping CSRF solutions like this in favour of securing their cookies. |
3 replies
|
Solution to consider: Just have 2 cookies. 1 Lax, 1 Strict.
I think this may completely remove the need for a CSRF token middleware. Very insightful discussion @simonw @JimDabell @tomchristie |
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Checklist
Is your feature related to a problem? Please describe.
Add full description here
fastapi/fastapi#4419
TL;DR according #1 I want something built-in like https://github.com/frankie567/starlette-csrf
Describe the solution you would like.
No response
Describe alternatives you considered
No response
Additional context
No response
All reactions