forked from Mirrors/gomuks
server: set same-site attribute in cookies
This commit is contained in:
parent
066c3ff0d3
commit
544b90f3d9
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,
|
||||
SameSite: http.SameSiteLaxMode,
|
||||
})
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue