Skip to content

Commit 8637091

Browse files
committed
Harden session cookie security
1 parent 4b6b077 commit 8637091

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

internal/webserver/authentication/sessionmanager/SessionManager.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,7 @@ func writeSessionCookie(w http.ResponseWriter, sessionString string, expiry time
8787
Name: "session_token",
8888
Value: sessionString,
8989
Expires: expiry,
90+
HttpOnly: true,
9091
SameSite: http.SameSiteLaxMode,
9192
}
9293
http.SetCookie(w, c)

0 commit comments

Comments
 (0)