Answer the question
In order to leave comments, you need to log in
How to set cookies in graphpql client react?
hello there is a code
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',
});
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question