From 198d6320dde95699b4a1a43c688fde79d632f4b3 Mon Sep 17 00:00:00 2001 From: slene Date: Fri, 13 Sep 2013 22:42:15 +0800 Subject: [PATCH] fix xsrf cookie path should use root --- controller.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/controller.go b/controller.go index b93c4db1..491b9610 100644 --- a/controller.go +++ b/controller.go @@ -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 }