mirror of
https://github.com/tulir/gomuks.git
synced 2025-04-20 18:43:41 -05:00
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,
|
Value: token,
|
||||||
Expires: expiry,
|
Expires: expiry,
|
||||||
HttpOnly: true,
|
HttpOnly: true,
|
||||||
|
SameSite: http.SameSiteLaxMode,
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue