forked from Mirrors/gomuks
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,
|
Value: token,
|
||||||
Expires: expiry,
|
Expires: expiry,
|
||||||
HttpOnly: true,
|
HttpOnly: true,
|
||||||
|
Secure: true,
|
||||||
SameSite: http.SameSiteLaxMode,
|
SameSite: http.SameSiteLaxMode,
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue