浏览代码

fix: fix cookie path

JustSong 1 年之前
父节点
当前提交
04944427b8
共有 1 个文件被更改,包括 1 次插入0 次删除
  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,
 	})