Skip to content

Commit

Permalink
Fix secure cookies
Browse files Browse the repository at this point in the history
  • Loading branch information
hectorespert committed Dec 22, 2024
1 parent 2a3732b commit 5c50638
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion controller/utils/auth.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,14 @@ type auth struct {
}

func NewAuth(b string, store storage.Store) Auth {
cookieStore := sessions.NewCookieStore([]byte("reef-pi-key"))
cookieStore.Options.SameSite = http.SameSiteDefaultMode
cookieStore.Options.Secure = false

return &auth{
bucket: b,
store: store,
cookiejar: sessions.NewCookieStore([]byte("reef-pi-key")),
cookiejar: cookieStore,
}
}

Expand Down

0 comments on commit 5c50638

Please sign in to comment.