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