Dedicated to the Hydrogen framework, headless commerce, and building custom storefronts using the Storefront API.
We're moving the community! Starting July 7, the current community will be read-only for approx. 2 weeks. You can browse content, but posting will be temporarily unavailable. Learn more
Hello,
I'm getting a CORS error when trying to make a basic GraphQL query to the Storefront API.
Trying to initialize my client like so:
const client = new ApolloClient({
uri: "my store",
headers: {
"X-Shopify-Storefront-Access-Token": "my access token",
},
cache: new InMemoryCache(),
});
How do I get around this? I'm using a private app from my normal shopify account NOT from a partner account.
Thanks
Conor
Exactly my problem as well. Can someone answer this?
I am running into the same issue. By any chance did you figured it out? 😅