I have a custom flow where If a user clicks on a custom button on a marketing pop-up, a custom tag should be added to the user profile. I am using admin APIs for the same but there's a CORS issue that I am facing in this flow. This is working perfectly fine when using through shopify URL (xxx.shopifyapp.com) but when trying the same flow from mydomain.com I am facing 301 CORS issue.
Similar issue is happening on /cart/add as well. In shopify domain /cart/add is giving a response back but on mydomain.com this API doesn't return any response even if the status code is 200.
Do guide me on this.
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