core/config: remove cookie secure option (#4907)

This commit is contained in:
Caleb Doxsey 2024-01-12 13:28:14 -07:00 committed by GitHub
parent d5b4910951
commit f684910ab3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
9 changed files with 431 additions and 452 deletions

View file

@ -44,7 +44,7 @@ func (a *Authenticate) Mount(r *mux.Router) {
state := a.state.Load()
csrfKey := fmt.Sprintf("%s_csrf", options.CookieName)
csrfOptions := []csrf.Option{
csrf.Secure(options.CookieSecure),
csrf.Secure(true),
csrf.Path("/"),
csrf.UnsafePaths(
[]string{