mirror of
https://github.com/go-gitea/gitea
synced 2024-12-22 09:37:53 +01:00
Set headers in js and go files to X-Csrf-Token
This commit is contained in:
parent
9ddd545473
commit
9476e58de9
@ -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…
Reference in New Issue
Block a user