Use secure cookies always

This commit is contained in:
Marcos Lilljedahl
2020-10-20 02:24:15 -03:00
parent f898a14485
commit d55bdc9664

View File

@@ -21,7 +21,7 @@ func (c *CookieID) SetCookie(rw http.ResponseWriter, host string) error {
Domain: host,
Path: "/",
SameSite: http.SameSiteNoneMode,
Secure: config.UseLetsEncrypt,
Secure: true,
HttpOnly: true,
}
http.SetCookie(rw, cookie)