Hello, when running a react app talking to a Go backend (routing with Gin) I am able to set cookies locally but when I deploy both services to my production environment, which are secured with https, I can no longer set cookies. I can successfully reach the API with no issues, but cookies are not being set. Here is how I am setting them.
http.SetCookie(writer, &http.Cookie{
Name: cfg.CookieName,
Value: token,
MaxAge: maxAge,
Path: "/",
Domain: cfg.CookieDomain,
SameSite: http.SameSiteNoneMode,
Secure: false,
HttpOnly: false,
})