Need more info
Are you using the latest packages
this code works out of the box the inital code that shopify app init comes with
Try to make a new base app and try my solutions
Core Issue:
Developers encounter CORS errors when making requests from Shopify themes or extensions to Remix-based Shopify apps during local development, particularly when using app proxies or tunnels.
Primary Solution (Posts 4, 17, 19-20):
remix-utils package and use its cors() functionloader and action functionsserverDependenciesToBundle: [/^remix-utils.*/] to remix.config.jsKey Implementation Pattern:
if (request.method === 'OPTIONS') {
return await cors(request, json({ status: 200 }));
}
const response = json({ data });
return await cors(request, response);
Important Caveats:
authenticate.public.checkout(request) instead of authenticate.admin(request)Status: Multiple users confirmed the solution works after properly handling OPTIONS requests in loader functions.
Need more info
Are you using the latest packages
this code works out of the box the inital code that shopify app init comes with
Try to make a new base app and try my solutions