Hello I am using beego to create an API, and I am using gorillla for the session as I had problems with beego's session. Now this is working well on localhost but cookies are not sent on the deployed version on heroku. Here is how I set the cookies in a controller:
session, _ := store.Get(c.Ctx.Request, "session") // c is the controller
session.Values["id"] = user.Id