Browse Source

Set headers in js and go files to X-Csrf-Token

for-closed-social
Vyacheslav Bakhmutov 10 years ago
parent
commit
9476e58de9
1 changed files with 1 additions and 0 deletions
  1. +1
    -0
      cmd/web.go

+ 1
- 0
cmd/web.go View File

@ -95,6 +95,7 @@ func newMacaron() *macaron.Macaron {
m.Use(csrf.Generate(csrf.Options{
Secret: setting.SecretKey,
SetCookie: true,
Header: "X-Csrf-Token",
}))
m.Use(toolbox.Toolboxer(m, toolbox.Options{
HealthCheckFuncs: []*toolbox.HealthCheckFuncDesc{

Loading…
Cancel
Save