mirror of
https://github.com/astaxie/beego.git
synced 2025-06-27 00:00:19 +00:00
fix xsrf cookie path should use root
This commit is contained in:
@ -318,7 +318,7 @@ func (c *Controller) XsrfToken() string {
|
||||
} else {
|
||||
expire = XSRFExpire
|
||||
}
|
||||
c.Ctx.SetCookie("_xsrf", token, expire)
|
||||
c.Ctx.SetCookie("_xsrf", token, expire, "/")
|
||||
}
|
||||
c._xsrf_token = token
|
||||
}
|
||||
|
Reference in New Issue
Block a user