Use secure cookies always
This commit is contained in:
@@ -21,7 +21,7 @@ func (c *CookieID) SetCookie(rw http.ResponseWriter, host string) error {
|
|||||||
Domain: host,
|
Domain: host,
|
||||||
Path: "/",
|
Path: "/",
|
||||||
SameSite: http.SameSiteNoneMode,
|
SameSite: http.SameSiteNoneMode,
|
||||||
Secure: config.UseLetsEncrypt,
|
Secure: true,
|
||||||
HttpOnly: true,
|
HttpOnly: true,
|
||||||
}
|
}
|
||||||
http.SetCookie(rw, cookie)
|
http.SetCookie(rw, cookie)
|
||||||
|
|||||||
Reference in New Issue
Block a user