From 09e2b2f4b643f5666603f77c0f8ccbf60fb9b7cb Mon Sep 17 00:00:00 2001 From: Grail Finder Date: Thu, 29 May 2025 11:50:03 +0300 Subject: [PATCH] Fix: cookies --- handlers/auth.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/handlers/auth.go b/handlers/auth.go index 7836fec..816a31f 100644 --- a/handlers/auth.go +++ b/handlers/auth.go @@ -142,12 +142,12 @@ func makeCookie(username string, remote string) (*http.Cookie, error) { cookieValue := base64.URLEncoding.EncodeToString([]byte( string(signature) + sessionToken)) cookie := &http.Cookie{ - Name: cookieName, - Value: cookieValue, - Secure: true, + Name: cookieName, + Value: cookieValue, + // Secure: true, HttpOnly: true, SameSite: http.SameSiteNoneMode, - Domain: cfg.ServerConfig.Host, + // Domain: cfg.ServerConfig.Host, } log.Info("check remote addr for cookie set", "remote", remote, "session", session)