mirror of
https://github.com/simon-ding/polaris.git
synced 2026-06-10 03:57:39 +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")
|
return nil, errors.Wrap(err, "sign")
|
||||||
}
|
}
|
||||||
c.SetSameSite(http.SameSiteNoneMode)
|
c.SetSameSite(http.SameSiteNoneMode)
|
||||||
c.SetCookie("token", sig, 0, "/", "", true, false)
|
c.SetCookie("token", sig, 0, "/", "", false, false)
|
||||||
return gin.H{
|
return gin.H{
|
||||||
"token": sig,
|
"token": sig,
|
||||||
}, nil
|
}, nil
|
||||||
|
|||||||
Reference in New Issue
Block a user