198d6320 by slene

fix xsrf cookie path should use root

1 parent 1596aa7a
...@@ -318,7 +318,7 @@ func (c *Controller) XsrfToken() string { ...@@ -318,7 +318,7 @@ func (c *Controller) XsrfToken() string {
318 } else { 318 } else {
319 expire = XSRFExpire 319 expire = XSRFExpire
320 } 320 }
321 c.Ctx.SetCookie("_xsrf", token, expire) 321 c.Ctx.SetCookie("_xsrf", token, expire, "/")
322 } 322 }
323 c._xsrf_token = token 323 c._xsrf_token = token
324 } 324 }
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!