Add secure/httpOnly attributes to the lang cookie (#9690) (#14279)

tokarchuk/v1.17
Timo Gurr 4 years ago committed by GitHub
parent 3c96a37162
commit c1e30c9a84
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      routers/routes/macaron.go

@ -89,6 +89,8 @@ func NewMacaron() *macaron.Macaron {
Names: setting.Names,
DefaultLang: "en-US",
Redirect: false,
CookieHttpOnly: true,
Secure: setting.SessionConfig.Secure,
CookieDomain: setting.SessionConfig.Domain,
}))
m.Use(cache.Cacher(cache.Options{

Loading…
Cancel
Save