Skip to content

Commit

Permalink
Merge pull request #166 from rebuy-de/fix-strict-mode
Browse files Browse the repository at this point in the history
fix strict mode for session cookie
  • Loading branch information
svenwltr committed Jul 11, 2023
2 parents 61a9e4c + f2e8fd3 commit ef93588
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 ef93588

Please sign in to comment.