Versions in this module Expand all Collapse all v0 v0.1.0 Nov 16, 2021 Changes in this version + var CSRFExemptPrefixes = []string + var Store = sessions.NewCookieStore([]byte(securecookie.GenerateRandomKey(64)), ...) + func ApplySecurityHeaders(next http.Handler) http.HandlerFunc + func CSRFExceptions(handler http.Handler) http.HandlerFunc + func EnforceViewOnly(next http.Handler) http.Handler + func GetContext(handler http.Handler) http.HandlerFunc + func JSONError(w http.ResponseWriter, c int, m string) + func RequireAPIKey(handler http.Handler) http.Handler + func RequireLogin(handler http.Handler) http.HandlerFunc + func RequirePermission(perm string) func(http.Handler) http.HandlerFunc + func Use(handler http.HandlerFunc, mid ...func(http.Handler) http.HandlerFunc) http.HandlerFunc v0.1.0-beta Nov 15, 2021