CORS issue when requesting data from shopify app (remix template) during local theme development

You don’t need to setup any Vite or remix configs

see my below code and just fixes your code similar to mine

Issue is:
When you call Remix APIs Shopify send the OPTIONS requests so we need to CORS safe them and that’s exactly what I did with my code

https://community.shopify.com/post/2640355

1 Like