echo
echo copied to clipboard
Custom CSRF ErrorHandler
Issue Description
Similar to the JWT middleware which has a ErrorHandler, it would be useful to have a similar thing for the CSRF middleware. Why? Same as JWT, returning custom HTTP errors.
There are also BeforeFunc, SuccessFunc and ErrorHandlerWithContext, but I'm not sure all of these are useful.