diff options
author | Unknwon <joe2010xtmf@163.com> | 2014-09-21 12:22:50 -0400 |
---|---|---|
committer | Unknwon <joe2010xtmf@163.com> | 2014-09-21 12:22:50 -0400 |
commit | b72d7c201ab34bd4de9582be891c3d4b76c3fd70 (patch) | |
tree | 18ac25890da1a8151fdf45d5609510c596752ba4 /cmd/web.go | |
parent | 4a01bb8fa40e770433b6858a97e336393cb8e9b2 (diff) |
Mirror bug fix
Diffstat (limited to 'cmd/web.go')
-rw-r--r-- | cmd/web.go | 7 |
1 files changed, 4 insertions, 3 deletions
@@ -97,9 +97,10 @@ func newMacaron() *macaron.Macaron { Config: *setting.SessionConfig, })) m.Use(csrf.Generate(csrf.Options{ - Secret: setting.SecretKey, - SetCookie: true, - Header: "X-Csrf-Token", + Secret: setting.SecretKey, + SetCookie: true, + Header: "X-Csrf-Token", + CookiePath: setting.AppSubUrl, })) m.Use(toolbox.Toolboxer(m, toolbox.Options{ HealthCheckFuncs: []*toolbox.HealthCheckFuncDesc{ |