Merge branch 'development' of github.com:defuj/eis into development
This commit is contained in:
@ -20,7 +20,6 @@ const instance = axios.create({
|
||||
})
|
||||
|
||||
export const getQueryString = (query: DocumentNode) => query.loc?.source.body!
|
||||
|
||||
export const requestGraphQl = async (query: DocumentNode, data: any) => {
|
||||
return await instance.post('', {
|
||||
query: getQueryString(query),
|
||||
@ -31,7 +30,7 @@ export const requestGraphQl = async (query: DocumentNode, data: any) => {
|
||||
export const apolloClient = () => {
|
||||
const httpLink = createHttpLink({
|
||||
uri: import.meta.env.VITE_APP_GRAPHQL_ENDPOINT,
|
||||
credentials: 'include' // Include credentials for cross-origin requests
|
||||
credentials: 'include'
|
||||
})
|
||||
|
||||
const apolloClient = new ApolloClient({
|
||||
|
Reference in New Issue
Block a user