I am facing CROS policy error when trying to fetch product details by product id using ajax

Topic summary

A developer is encountering a CORS (Cross-Origin Resource Sharing) error when attempting to fetch product details via AJAX in Shopify Plus.

Error Details:

  • Missing ‘Access-Control-Allow-Origin’ header
  • Occurs despite providing an access token

Suspected Cause:

  • The store may have a redirect configured to another URL, potentially causing cross-origin issues

Current Status:

  • Another user has requested clarification about whether the fetch request originates from the same domain/origin
  • Additional technical details are needed to diagnose the problem
  • The issue remains unresolved and awaiting further information
Summarized with AI on November 1. AI used: claude-sonnet-4-5-20250929.

I am trying to fetch the product details using ajax but it returns errror: (Reason: CORS header ‘Access-Control-Allow-Origin’ missing). I am alos providing the access token but i didn’t work. The reason may be is that i have a redirect to another url for the store.

You trying to fetch them from the same domain/origin? Need more details.