Getting following error trying to fetch data from react app.
-
Magento 2.4.2
-
Reac JS v17
-
Apollo/Client 3
import { ApolloClient, InMemoryCache } from "@apollo/client"; export const client = new ApolloClient({ uri: "https://someurl/graphql", cache: new InMemoryCache(), });
I also tried to add “no-cors” as suggested but still its not working
fetchOptions: {
mode: 'no-cors',
},