Skip to content

Custom CSRF ErrorHandler #2183

Closed
Closed

Description

@dubvulture

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions