const link = createHttpLink({
uri: 'http://localhost:8000/graphql',
credentials: 'same-origin',
fetchOptions:{
credentials:'same-origin'
},
});
const client = new ApolloClient({
// @ts-ignore
link,
cache: new InMemoryCache(),
fetchOptions:{
credentials:'same-origin'
},
credentials:'same-origin',
});