From c1e1506720e3c8b4e8782da9ff73ce1c57ce71a5 Mon Sep 17 00:00:00 2001 From: Frédéric Guillot Date: Sun, 9 Sep 2018 14:25:56 -0700 Subject: Revert cookie flag from strict to lax mode otherwise oauth2 won't work --- http/cookie/cookie.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'http') diff --git a/http/cookie/cookie.go b/http/cookie/cookie.go index 9ac79a1..799d26c 100644 --- a/http/cookie/cookie.go +++ b/http/cookie/cookie.go @@ -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, } } -- cgit v1.2.3