Commit 94c10d8d by 1808837298@qq.com

fix: update session store configuration

- Change session cookie path from "/api" to "/"
- Remove HttpOnly flag
parent 6a9c0fd2
...@@ -146,9 +146,8 @@ func main() { ...@@ -146,9 +146,8 @@ func main() {
// Initialize session store // Initialize session store
store := cookie.NewStore([]byte(common.SessionSecret)) store := cookie.NewStore([]byte(common.SessionSecret))
store.Options(sessions.Options{ store.Options(sessions.Options{
Path: "/api", Path: "/",
Secure: false, Secure: false,
HttpOnly: true,
}) })
server.Use(sessions.Sessions("session", store)) server.Use(sessions.Sessions("session", store))
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment