csrf

package
v0.0.0-...-78c2119 Latest Latest
Warning

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

Go to latest
Published: Aug 21, 2023 License: BSD-3-Clause Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetCSRFToken

func GetCSRFToken(request *alanis.Request) (string, error)

func NewUnauthenticatedCSRF

func NewUnauthenticatedCSRF(opts ...Option) alanis.MiddlewareFunc

Types

type Option

type Option func(m *middleware)

func WithSecret

func WithSecret(secret []byte) Option

func WithSecure

func WithSecure(secure bool) Option

func WithTrustedOrigin

func WithTrustedOrigin(origins ...string) Option

Jump to

Keyboard shortcuts

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