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