Skip to content

Commit

Permalink
fix(sessions): set HttpOnly flag for session cookies
Browse files Browse the repository at this point in the history
  • Loading branch information
ErvinRacz committed Feb 6, 2025
1 parent a86cd19 commit 3b6e8ff
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions backend/pkg/sessions/session.go
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,7 @@ func (s *Session) Save(writer http.ResponseWriter) error {
Value: value,
Path: "/",
MaxAge: maxAge,
HttpOnly: true,
}
http.SetCookie(writer, cookie)
return nil
Expand Down

0 comments on commit 3b6e8ff

Please sign in to comment.