From 616ae77ef03882311ae6f6a6c1ecd4772586c9d0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=80=97=E5=AD=90?= Date: Tue, 16 Dec 2025 03:51:48 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E6=8C=89=E9=9C=80=E8=AE=BE=E7=BD=AEcook?= =?UTF-8?q?ie?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- internal/http/middleware/must_login.go | 1 + 1 file changed, 1 insertion(+) diff --git a/internal/http/middleware/must_login.go b/internal/http/middleware/must_login.go index 3b4b75d9..d7195f7e 100644 --- a/internal/http/middleware/must_login.go +++ b/internal/http/middleware/must_login.go @@ -94,6 +94,7 @@ func MustLogin(t *gotext.Locale, conf *koanf.Koanf, session *sessions.Manager, u Expires: time.Now().Add(time.Duration(session.Lifetime) * time.Minute), Path: "/", HttpOnly: true, + Secure: conf.Bool("http.tls"), SameSite: http.SameSiteLaxMode, }) }