mirror of
https://github.com/gogs/gogs.git
synced 2026-07-07 09:41:51 +02:00
conf: overhaul security settings
This commit is contained in:
@@ -143,7 +143,7 @@ func newMacaron() *macaron.Macaron {
|
||||
}))
|
||||
m.Use(session.Sessioner(conf.SessionConfig))
|
||||
m.Use(csrf.Csrfer(csrf.Options{
|
||||
Secret: conf.SecretKey,
|
||||
Secret: conf.Security.SecretKey,
|
||||
Cookie: conf.CSRFCookieName,
|
||||
SetCookie: true,
|
||||
Header: "X-Csrf-Token",
|
||||
|
||||
Reference in New Issue
Block a user