mirror of
https://github.com/go-gitea/gitea
synced 2025-07-22 18:28:37 +00: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