mirror of
https://github.com/TheAnachronism/docspell.git
synced 2025-06-22 02:18:26 +00:00
Set samesite=strict for all cookies
This commit is contained in:
@ -26,7 +26,8 @@ case class CookieData(auth: AuthToken) {
|
||||
domain = None,
|
||||
path = Some(path.asString),
|
||||
httpOnly = true,
|
||||
secure = sec
|
||||
secure = sec,
|
||||
sameSite = Some(SameSite.Strict)
|
||||
)
|
||||
}
|
||||
|
||||
|
@ -24,7 +24,8 @@ case class RememberCookieData(token: RememberToken) {
|
||||
path = Some(path.asString),
|
||||
httpOnly = true,
|
||||
secure = sec,
|
||||
maxAge = Some(config.valid.seconds)
|
||||
maxAge = Some(config.valid.seconds),
|
||||
sameSite = Some(SameSite.Strict)
|
||||
)
|
||||
}
|
||||
|
||||
|
@ -26,7 +26,8 @@ final case class ShareCookieData(token: ShareToken) {
|
||||
httpOnly = true,
|
||||
secure = sec,
|
||||
maxAge = None,
|
||||
expires = None
|
||||
expires = None,
|
||||
sameSite = Some(SameSite.Strict)
|
||||
)
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user