/epic-stack-example-csrf

An example of how to add CSRF tokens to an Epic Stack app

Primary LanguageTypeScript

Epic Stack Example with CSRF Tokens

CSRF tokens protect your users if you must use non-Lax/Strict cookies or you need to perform actions on GET requests.

In this example, we use the utilities provided by remix-utils to generate and validate CSRF tokens. We also have a validateCSRF utility that will automatically validate the CSRF token and return a 403 if it is invalid.

Check this commit for details.