Browse Source

fix: fix cookie path

JustSong 1 year ago
parent
commit
04944427b8
1 changed files with 1 additions and 0 deletions
  1. 1 0
      main.go

+ 1 - 0
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,
 	})