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