An example of the Epic Stack with CSRF protection on forms
This is an example of how to integrate the
remix-utils
package utilities for
Cross-Site Request Forgery (CSRF)
protection with the Epic Stack. The easiest way to explore the example is to
pull up
the commit history.
Following the steps laid out in the Remix Utils docs is sufficient for this:
remix-utils
root.tsx
loader (be certain to<AuthenticityTokenProvider />
and provide the token<AuthenticityTokenInput />
componentverifyAuthenticityToken
and the session.