csrf

package
v0.47.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 23, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Protect

func Protect(opts ...Option) func(http.Handler) http.Handler

Protect wraps the provided Handler with CSRF protection

Types

type Option

type Option func(*csrf)

Option contains configuration for the CSRF wrapper

func ErrorHandler

func ErrorHandler(h http.Handler) Option

ErrorHandler configures the provided error handler on the CSRF wrapper

func HeaderName

func HeaderName(header string) Option

HeaderName configures the header name on the CSRF wrapper

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL