gtsocial-umbx

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README | LICENSE

commit f848aaa81f04666dae29e0bb85ccf31d30574de7
parent a54efa09f9fd1b8af9d99e0e94600133a20b751c
Author: tobi <31960611+tsmethurst@users.noreply.github.com>
Date:   Wed, 25 May 2022 18:08:12 +0200

[security] Set SameSite to `strict` instead of browser default (#606)


Diffstat:
Minternal/router/session.go | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/internal/router/session.go b/internal/router/session.go @@ -42,7 +42,7 @@ func SessionOptions() sessions.Options { MaxAge: 120, // 2 minutes Secure: viper.GetString(config.Keys.Protocol) == "https", // only use cookie over https HttpOnly: true, // exclude javascript from inspecting cookie - SameSite: http.SameSiteDefaultMode, // https://datatracker.ietf.org/doc/html/draft-ietf-httpbis-cookie-same-site-00#section-4.1.1 + SameSite: http.SameSiteStrictMode, // https://datatracker.ietf.org/doc/html/draft-ietf-httpbis-cookie-same-site-00#section-4.1.1 } }