Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CORS errors on request #690

Open
T0biWan opened this issue Dec 14, 2021 · 1 comment
Open

CORS errors on request #690

T0biWan opened this issue Dec 14, 2021 · 1 comment

Comments

@T0biWan
Copy link

T0biWan commented Dec 14, 2021

I am following the instructions from https://nuxt-shopify-docs.vercel.app/usage/shopify-client and also the provided readme here.
For example I tried following code provided by the docs to fetch a certain product:

methods: {
  async fetchProduct(productId) {
    this.product = await this.$shopify.product.fetch(productId);
  }
}

But I always get CORS errors denying my request.
I am trying to fix this issue for several days now and cant find a solution, what am I doing wrong?

@Gomah
Copy link
Owner

Gomah commented Jan 7, 2022

Hey @T0biWan, do you have a small reproduction with the CORS error?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants