diff options
author | Vyacheslav Bakhmutov <m0sth8@yandex-team.ru> | 2014-09-02 22:48:40 +0700 |
---|---|---|
committer | Vyacheslav Bakhmutov <m0sth8@yandex-team.ru> | 2014-09-02 22:48:40 +0700 |
commit | 9476e58de941624912a3ceb89d52d36e79c03358 (patch) | |
tree | 275b7b29894dcbc338b449678bec8668f044353e | |
parent | 9ddd5454730b1639d5b2762391f6747a749371b7 (diff) | |
download | gitea-9476e58de941624912a3ceb89d52d36e79c03358.tar.gz gitea-9476e58de941624912a3ceb89d52d36e79c03358.zip |
Set headers in js and go files to X-Csrf-Token
-rw-r--r-- | cmd/web.go | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/cmd/web.go b/cmd/web.go index 2199d4ca1e..57164683ac 100644 --- a/cmd/web.go +++ b/cmd/web.go @@ -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{ |