Skip to content

Commit

Permalink
fix(server): Fix cookie SameSite attribute
Browse files Browse the repository at this point in the history
  • Loading branch information
exler committed Jan 13, 2024
1 parent 69effb0 commit 5d6b941
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/handlers.go
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ func (s *Server) loginPOSTHandler(w http.ResponseWriter, r *http.Request) {
Value: s.sitePasswordHash,
Path: "/",
HttpOnly: true,
SameSite: http.SameSiteStrictMode,
SameSite: http.SameSiteLaxMode,
Secure: r.TLS != nil,
}

Expand Down

0 comments on commit 5d6b941

Please sign in to comment.