mirror of
https://github.com/tulir/gomuks.git
synced 2025-04-19 18:13:41 -05:00
server: set secure flag for cookie
This commit is contained in:
parent
544b90f3d9
commit
ba30026cdc
1 changed files with 1 additions and 0 deletions
|
@ -146,6 +146,7 @@ func (gmx *Gomuks) writeTokenCookie(w http.ResponseWriter) {
|
|||
Value: token,
|
||||
Expires: expiry,
|
||||
HttpOnly: true,
|
||||
Secure: true,
|
||||
SameSite: http.SameSiteLaxMode,
|
||||
})
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue