diff --git a/internal/router/session.go b/internal/router/session.go index 4c83b590..a2cbff7d 100644 --- 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 } }