Add SameSite cookie option

This commit is contained in:
Marcos Lilljedahl
2020-03-30 18:31:36 -03:00
parent 79a7e6317b
commit 859648d771

View File

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