1
0
mirror of https://github.com/astaxie/beego.git synced 2024-11-22 15:40:55 +00:00

fix xsrf cookie path should use root

This commit is contained in:
slene 2013-09-13 22:42:15 +08:00
parent 1596aa7a34
commit 198d6320dd

View File

@ -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
}