Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CSRF ¶
type CSRF struct {
TokenLength int // default: 32
TokenLookup string // default: X-CSRF-Token (header/form field)
AllowForm bool
CookieName string // default: _csrf
CookieDomain string
CookiePath string // default: /
CookieMaxAge int // default: 86400 (1 day)
CookieSecure bool
CookieSameSite http.SameSite
CookieHTTPOnly bool
}
Click to show internal directories.
Click to hide internal directories.