DEV Community

Discussion on: GraphQL (microservices) architecture by Apollo

Collapse
mucorolle profile image
Muco Rolle Tresor

If you did not solve this problem here's the solution, to make apollo client pass the cookie to the server in every request you need to add credentials: "include" property in your ApolloClient instance

new ApolloClient({
        uri: API_URL,
        credentials: 'include',
        cache: new InMemoryCache(),
    });
Enter fullscreen mode Exit fullscreen mode