Make sure you are setting CORS headers.
My fetch looks like this:
const response = await fetch('/apps/ymm' + queryParams, {
method: 'GET',
headers: { 'Content-Type': 'application/json' },
});
Shopify Remix app proxy calls from a theme block fail with CORS errors or 404s when the proxy or routes aren’t configured correctly.
Key fixes and setup:
Troubleshooting tips:
Status: Original issue resolved; others confirmed fixes, though some still report 404/CORS, so discussion remains open.
Make sure you are setting CORS headers.
My fetch looks like this:
const response = await fetch('/apps/ymm' + queryParams, {
method: 'GET',
headers: { 'Content-Type': 'application/json' },
});