next-csrf
next-csrf copied to clipboard
Explain implementation
I'm still a web dev newbie so this might be a dumb question, but if tokens are set in the middleware for requests that don't have them, how then are csrf attacks mitigated?
@Esarhaddon it's not a dumb question at all, actually, it's a very valid question and there was a bug allowing unprotected API routes to provide CSRF tokens.
I'm working on a PR to fix that.
Thanks for the heads up!