mirror of
https://gitee.com/gitea/gitea
synced 2025-12-29 11:46:35 +08:00
mirror fix and update
This commit is contained in:
@@ -136,7 +136,7 @@ func newMacaron() *macaron.Macaron {
|
||||
Provider: setting.SessionProvider,
|
||||
Config: *setting.SessionConfig,
|
||||
}))
|
||||
m.Use(csrf.Generate(csrf.Options{
|
||||
m.Use(csrf.Csrfer(csrf.Options{
|
||||
Secret: setting.SecretKey,
|
||||
SetCookie: true,
|
||||
Header: "X-Csrf-Token",
|
||||
|
||||
Reference in New Issue
Block a user