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

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
}