Versions in this module Expand all Collapse all v0 v0.12.5 Mar 4, 2020 v0.12.4 Mar 3, 2020 v0.12.3 Feb 7, 2019 GO-2020-0033 GO-2020-0033: Path Traversal in aahframe.work v0.12.2 Dec 13, 2018 GO-2020-0033 GO-2020-0033: Path Traversal in aahframe.work v0.12.1 Dec 8, 2018 GO-2020-0033 GO-2020-0033: Path Traversal in aahframe.work v0.12.0 Dec 2, 2018 GO-2020-0033 GO-2020-0033: Path Traversal in aahframe.work Changes in this version + var ErrBadReferer = errors.New("security/anticsrf: bad referer") + var ErrMalformedReferer = errors.New("security/anticsrf: malformed referer") + var ErrNoCookieFound = errors.New("security/anticsrf: no cookie found") + var ErrNoReferer = errors.New("security/anticsrf: no referer") + func IsSafeHTTPMethod(method string) bool + func IsSameOrigin(a, b *url.URL) bool + type AntiCSRF struct + Enabled bool + func New(cfg *config.Config) (*AntiCSRF, error) + func (ac *AntiCSRF) CipherSecret(r *ahttp.Request) []byte + func (ac *AntiCSRF) ClearCookie(w http.ResponseWriter, r *ahttp.Request) + func (ac *AntiCSRF) GenerateSecret() []byte + func (ac *AntiCSRF) IsAuthentic(secret, requestSecret []byte) bool + func (ac *AntiCSRF) RequestCipherSecret(r *ahttp.Request) []byte + func (ac *AntiCSRF) SaltCipherSecret(secret []byte) string + func (ac *AntiCSRF) SetCookie(w http.ResponseWriter, secret []byte) error