Revert "Set SameSite cookie attribute to Strict"

This reverts commit 5ac55518ab.

Google Authentication doesn't work when Cookies are using strict mode.
This commit is contained in:
Frédéric Guillot 2020-08-10 18:51:40 -07:00
parent eaf1fc896f
commit c1e3783272

View file

@ -27,7 +27,7 @@ func New(name, value string, isHTTPS bool, path string) *http.Cookie {
Secure: isHTTPS,
HttpOnly: true,
Expires: time.Now().Add(cookieDuration * 24 * time.Hour),
SameSite: http.SameSiteStrictMode,
SameSite: http.SameSiteLaxMode,
}
}
@ -41,7 +41,7 @@ func Expired(name string, isHTTPS bool, path string) *http.Cookie {
HttpOnly: true,
MaxAge: -1,
Expires: time.Date(1970, 1, 1, 0, 0, 0, 0, time.UTC),
SameSite: http.SameSiteStrictMode,
SameSite: http.SameSiteLaxMode,
}
}