Documentation
¶
Overview ¶
Deprecated: Please upgrade to the newer, more robust, and stateless csrf package available at github.com/vormadev/vorma/kit/csrf.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type GetExpectedCSRFToken ¶
type GetSubmittedCSRFToken ¶
type Opts
deprecated
type Opts struct {
GetExpectedCSRFToken GetExpectedCSRFToken
GetSubmittedCSRFToken GetSubmittedCSRFToken
GetIsExempt func(r *http.Request) bool // Exempts from CSRF token check (not host check)
PermittedHosts []string // If len == 0, all hosts are permitted
}
Deprecated: Please upgrade to the newer, more robust, and stateless csrf package available at github.com/vormadev/vorma/kit/csrf.
Click to show internal directories.
Click to hide internal directories.