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() {
// Initialize session store
store := cookie.NewStore([]byte(common.SessionSecret))
store.Options(sessions.Options{
Path: "/api",
Secure: false,
HttpOnly: true,
Path: "/",
Secure: false,
})
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