From af0cfe112b4fcab674494dfb1a716a4bede2d7ca Mon Sep 17 00:00:00 2001 From: ᴜɴᴋɴᴡᴏɴ Date: Sat, 28 Mar 2020 19:17:15 +0800 Subject: web: rename CSRF header (#6027) --- internal/cmd/web.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'internal/cmd') diff --git a/internal/cmd/web.go b/internal/cmd/web.go index 04067427..84c99184 100644 --- a/internal/cmd/web.go +++ b/internal/cmd/web.go @@ -154,7 +154,7 @@ func newMacaron() *macaron.Macaron { })) m.Use(csrf.Csrfer(csrf.Options{ Secret: conf.Security.SecretKey, - Header: "X-Csrf-Token", + Header: "X-CSRF-Token", Cookie: conf.Session.CSRFCookieName, CookieDomain: conf.Server.URL.Hostname(), CookiePath: conf.Server.Subpath, -- cgit v1.2.3