Skip to content

Custom CSRF ErrorHandler #2183

@dubvulture

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.

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