Using react router Form, do we need still manually add csrf token? #14370
Answered
by
sergiodxa
tsulatsitamim
asked this question in
Q&A
-
Using react router Form, do we need still manually add csrf token? |
Beta Was this translation helpful? Give feedback.
Answered by
sergiodxa
Sep 23, 2025
Replies: 1 comment 1 reply
-
If you only use SameSite Lax cookies, you may not need CSRF, but if you want it you need to add it yourself on every form, or create a wrapper that adds it. |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
tsulatsitamim
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
If you only use SameSite Lax cookies, you may not need CSRF, but if you want it you need to add it yourself on every form, or create a wrapper that adds it.