Remove SameSite cookie attribute for session cookies to simplify cookie handling in auth service

This commit is contained in:
Luis Eduardo Jeréz Girón
2024-09-01 20:51:33 -06:00
parent 3af53061b0
commit fa2a07ae1a
-2
View File
@@ -19,7 +19,6 @@ func (s *Service) SetSessionCookie(c echo.Context, token string) {
MaxAge: int(maxSessionAge.Seconds()),
HttpOnly: true,
Path: "/",
SameSite: http.SameSiteStrictMode,
}
c.SetCookie(&cookie)
}
@@ -31,7 +30,6 @@ func (s *Service) ClearSessionCookie(c echo.Context) {
MaxAge: -1,
HttpOnly: true,
Path: "/",
SameSite: http.SameSiteStrictMode,
}
c.SetCookie(&cookie)
}