DavidRojas1612 / epic-stack-example-csrf

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

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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.

About

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


Languages

Language:TypeScript 97.2%Language:JavaScript 1.7%Language:Dockerfile 0.6%Language:CSS 0.5%