mirror of
https://github.com/go-gitea/gitea.git
synced 2026-10-03 02:21:17 +02:00
mirror fix and update
This commit is contained in:
1 parent
a18decf4cc
commit
79537467da
4 files changed
+8
-6
No files matched your search
+1
-1
@@ -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