2
0
mirror of https://github.com/acepanel/panel.git synced 2026-02-04 09:13:49 +08:00

fix: 按需设置cookie

This commit is contained in:
2025-12-16 03:51:48 +08:00
parent a328c29870
commit 616ae77ef0

View File

@@ -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,
})
}