Mirror bug fix

This commit is contained in:
Unknwon 2014-09-21 12:19:50 -04:00
parent d325b23dbb
commit 4a01bb8fa4
7 changed files with 8 additions and 11 deletions

View file

@ -97,10 +97,9 @@ func newMacaron() *macaron.Macaron {
Config: *setting.SessionConfig,
}))
m.Use(csrf.Generate(csrf.Options{
Secret: setting.SecretKey,
SetCookie: true,
Header: "X-Csrf-Token",
CookiePath: setting.AppSubUrl,
Secret: setting.SecretKey,
SetCookie: true,
Header: "X-Csrf-Token",
}))
m.Use(toolbox.Toolboxer(m, toolbox.Options{
HealthCheckFuncs: []*toolbox.HealthCheckFuncDesc{