Skip to content

Commit

Permalink
cookie remove secure
Browse files Browse the repository at this point in the history
  • Loading branch information
jeessy2 committed Apr 26, 2024
1 parent 3ff6859 commit 1999e09
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion web/login.go
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,6 @@ func Login(w http.ResponseWriter, r *http.Request) {
Value: token,
Path: "/",
Expires: time.Now().Add(time.Hour * 24 * 30), // 设置cookie过期时间为30天
Secure: true, // 将Secure设置为true以启用HTTPS安全cookie
}
http.SetCookie(w, &cookie)

Expand Down

0 comments on commit 1999e09

Please sign in to comment.