mirror fix and update
This commit is contained in:
parent
a18decf4cc
commit
79537467da
4 changed files with 8 additions and 6 deletions
|
@ -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",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue