mirror of
https://github.com/gogs/gogs.git
synced 2025-05-25 08:54:05 +00:00
web: rename CSRF header (#6027)
This commit is contained in:
parent
0b80578e62
commit
af0cfe112b
2
go.mod
2
go.mod
@ -62,7 +62,7 @@ require (
|
|||||||
gopkg.in/alexcesaro/quotedprintable.v3 v3.0.0-20150716171945-2caba252f4dc // indirect
|
gopkg.in/alexcesaro/quotedprintable.v3 v3.0.0-20150716171945-2caba252f4dc // indirect
|
||||||
gopkg.in/asn1-ber.v1 v1.0.0-20181015200546-f715ec2f112d // indirect
|
gopkg.in/asn1-ber.v1 v1.0.0-20181015200546-f715ec2f112d // indirect
|
||||||
gopkg.in/gomail.v2 v2.0.0-20160411212932-81ebce5c23df
|
gopkg.in/gomail.v2 v2.0.0-20160411212932-81ebce5c23df
|
||||||
gopkg.in/ini.v1 v1.53.0
|
gopkg.in/ini.v1 v1.54.0
|
||||||
gopkg.in/ldap.v2 v2.5.1
|
gopkg.in/ldap.v2 v2.5.1
|
||||||
gopkg.in/macaron.v1 v1.3.5
|
gopkg.in/macaron.v1 v1.3.5
|
||||||
unknwon.dev/clog/v2 v2.1.2
|
unknwon.dev/clog/v2 v2.1.2
|
||||||
|
File diff suppressed because one or more lines are too long
@ -154,7 +154,7 @@ func newMacaron() *macaron.Macaron {
|
|||||||
}))
|
}))
|
||||||
m.Use(csrf.Csrfer(csrf.Options{
|
m.Use(csrf.Csrfer(csrf.Options{
|
||||||
Secret: conf.Security.SecretKey,
|
Secret: conf.Security.SecretKey,
|
||||||
Header: "X-Csrf-Token",
|
Header: "X-CSRF-Token",
|
||||||
Cookie: conf.Session.CSRFCookieName,
|
Cookie: conf.Session.CSRFCookieName,
|
||||||
CookieDomain: conf.Server.URL.Hostname(),
|
CookieDomain: conf.Server.URL.Hostname(),
|
||||||
CookiePath: conf.Server.Subpath,
|
CookiePath: conf.Server.Subpath,
|
||||||
|
2904
public/js/gogs.js
2904
public/js/gogs.js
File diff suppressed because it is too large
Load Diff
Loading…
x
Reference in New Issue
Block a user