From 04944427b8dafba17226da98d4ee510081f5eff9 Mon Sep 17 00:00:00 2001 From: JustSong Date: Sun, 10 Nov 2024 12:43:01 +0800 Subject: [PATCH] fix: fix cookie path --- main.go | 1 + 1 file changed, 1 insertion(+) diff --git a/main.go b/main.go index 11d91f56a..f6f24f443 100644 --- a/main.go +++ b/main.go @@ -66,6 +66,7 @@ func main() { store = cookie.NewStore([]byte(common.SessionSecret)) } store.Options(sessions.Options{ + Path: "/", HttpOnly: true, MaxAge: 30 * 24 * 3600, })