fix: send csrf on root path (#444)

This commit is contained in:
Livio Amstutz 2020-07-10 13:09:30 +02:00 committed by GitHub
parent 0c442cbb3a
commit d8eef34a37
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -83,6 +83,7 @@ func csrfInterceptor(config CSRF, errorHandler http.Handler) (func(http.Handler)
return csrf.Protect([]byte(csrfKey),
csrf.Secure(!config.Development),
csrf.CookieName(config.CookieName),
csrf.Path("/"),
csrf.ErrorHandler(errorHandler),
), nil
}