mirror of
https://github.com/simon-ding/polaris.git
synced 2026-02-06 23:21:00 +08:00
fix: http auth
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user