fix: http auth

This commit is contained in:
Simon Ding
2024-09-02 13:45:49 +08:00
parent 60110f4ca6
commit b12bbd2ad9

View File

@@ -91,7 +91,7 @@ func (s *Server) Login(c *gin.Context) (interface{}, error) {
return nil, errors.Wrap(err, "sign")
}
c.SetSameSite(http.SameSiteNoneMode)
c.SetCookie("token", sig, 0, "/", "", true, false)
c.SetCookie("token", sig, 0, "/", "", false, false)
return gin.H{
"token": sig,
}, nil