Skip to content

CSRF with Remix v2 and remix-utils 7 #267

Answered by sergiodxa
rjaguilar asked this question in Q&A
Discussion options

You must be logged in to vote

The release notes mentioned a new cookie-based CSRF tokenYou shouldn't set the CSRF token in the session, save it in a separate cookie, if you use the same cookie for CSRF and the session it will fail because the session is stored as an object and the CSRF expects the cookie to be a string.

Replies: 3 comments 8 replies

Comment options

You must be logged in to vote
2 replies
@romuloa
Comment options

@sergiodxa
Comment options

Answer selected by rjaguilar
Comment options

You must be logged in to vote
2 replies
@sergiodxa
Comment options

@rjaguilar
Comment options

Comment options

You must be logged in to vote
4 replies
@sergiodxa
Comment options

@JClackett
Comment options

@sergiodxa
Comment options

@JClackett
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants