Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ErrNoReferer is returned when a HTTPS request provides an empty Referer // header. ErrNoReferer = csrf.ErrNoReferer // ErrBadReferer is returned when the scheme & host in the URL do not match // the supplied Referer header. ErrBadReferer = csrf.ErrBadReferer // ErrNoToken is returned if no CSRF token is supplied in the request. ErrNoToken = csrf.ErrNoToken // ErrBadToken is returned if the CSRF token in the request does not match // the token in the session, or is otherwise malformed. ErrBadToken = csrf.ErrBadToken )
View Source
var New = csrf.New
New enable CSRF protection on routes using this middleware. This middleware is adapted from gorilla/csrf
Deprecated: use github.com/gobuffalo/mw-csrf#New instead.
Functions ¶
This section is empty.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.