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. |
Beta Was this translation helpful? Give feedback.
-
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. |
Beta Was this translation helpful? Give feedback.
-
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 |
Beta Was this translation helpful? Give feedback.
-
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
Beta Was this translation helpful? Give feedback.
All reactions