diff --git a/internal/auth/cookie.go b/internal/auth/cookie.go index 0af5b15..fc042b1 100644 --- a/internal/auth/cookie.go +++ b/internal/auth/cookie.go @@ -17,7 +17,8 @@ func SetSessionCookie(w http.ResponseWriter, cookieName, token string, duration Path: "/", HttpOnly: true, Secure: secure, - SameSite: http.SameSiteNoneMode, + SameSite: http.SameSiteLaxMode, MaxAge: int(duration.Seconds()), }) } +