mirror of
https://github.com/astaxie/beego.git
synced 2024-12-22 15:40:49 +00:00
fix xsrf cookie path should use root
This commit is contained in:
parent
1596aa7a34
commit
198d6320dd
@ -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
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user