fix xsrf cookie path should use root
Showing
1 changed file
with
1 additions
and
1 deletions
| ... | @@ -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 | } | ... | ... |
-
Please register or sign in to post a comment