Skip to content

Commit

Permalink
fix: send csrf on root path (#444)
Browse files Browse the repository at this point in the history
  • Loading branch information
livio-a committed Jul 10, 2020
1 parent 0c442cb commit d8eef34
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions internal/ui/login/handler/login.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

0 comments on commit d8eef34

Please sign in to comment.