I have two graphql endpoints (authentiaction endpoint [AUTH] and application endpoint [APP]). I created the api gateway using "makeRemoteExecutableSchema" and "introspectSchema".
The thing is that [AUTH] endpoint on login mutation sets a cookie:
res.cookie("token", token, {
httpOnly: true,
secure: process.env.NODE_ENV === "production",
maxAge: 1000 * 60 * 60 * 24 * 7 // 7 days
});
The thing is, when I make a request directly to the [AUTH] endpoint, the cookie is set (I can see "Set-cookie" response headers). But when I make a login mutation via API gateway, the cookie is not set. How to solve my issue?