Skip to content

Commit

Permalink
fix strict mode for session cookie
Browse files Browse the repository at this point in the history
  • Loading branch information
svenwltr committed Jul 11, 2023
1 parent 61a9e4c commit f2e8fd3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/webutil/auth.go
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ func (m *authMiddleware) handler(next http.Handler) http.Handler {
Expires: time.Now().Add(7 * 24 * time.Hour), // TODO
Secure: true,
HttpOnly: true,
SameSite: http.SameSiteStrictMode,
SameSite: http.SameSiteLaxMode,
}
http.SetCookie(w, &cookie)

Expand Down

0 comments on commit f2e8fd3

Please sign in to comment.