mirror of
https://github.com/astaxie/beego.git
synced 2024-11-22 15:50:56 +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 {
|
} 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
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user