Encountering a CORS error while attempting to make fetch calls from the Checkout UI app to various API routes in my custom Shopify Remix app.
Are you trying to make an OTP?
You can't send data from front-end to back-end like this, you need to make a proxy server that will be the bridge.
This pertains to OTP requests, but other calls for sending simple data are also unsuccessful when attempting to fetch from the Checkout UI using the fetch method.
I have tried the above but couldn't get any result
Dive into the world of Print-on-Demand and discover how it can transform your online busin...By Imogen Feb 19, 2024
Discover how to transform your online store into a delightful shopping destination. Learn ...By Ollie Feb 13, 2024