csrf

package
v2.6.1 Latest Latest
Warning

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

Go to latest
Published: Sep 22, 2023 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrInvalidCsrfReferrer = errors.New("illegal referer host")
	ErrInvalidCsrfToken    = errors.New("wrong csrf token value")
)

Functions

func New

func New() (plugin.Plugin, error)

Types

type CloudConfig

type CloudConfig struct {
	CsrfConfig struct {
		CookieName string   `yaml:"cookieName" json:"cookieName" default:"csrftoken"`
		HeaderName string   `yaml:"headerName" json:"headerName" default:"csrftoken"`
		Whitelist  []string `yaml:"whitelist" json:"whitelist"`
	} `yaml:"defaultcsrf" json:"defaultcsrf"`
}

Jump to

Keyboard shortcuts

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