1
0
Fork 0
forked from Mirrors/gomuks

server: set secure flag for cookie

This commit is contained in:
Tulir Asokan 2024-10-20 12:19:51 +03:00
parent 544b90f3d9
commit ba30026cdc

View file

@ -146,6 +146,7 @@ func (gmx *Gomuks) writeTokenCookie(w http.ResponseWriter) {
Value: token, Value: token,
Expires: expiry, Expires: expiry,
HttpOnly: true, HttpOnly: true,
Secure: true,
SameSite: http.SameSiteLaxMode, SameSite: http.SameSiteLaxMode,
}) })
} }