I’m trying to make an API call to my Express app from a Checkout UI extension using an API proxy, but I’m still encountering a CORS error.
checkout.jsx -
const response = fetch("https://dev-ravindra.myshopify.com/apps/survey", {
method: "POST",
headers: {
"Content-Type": "application/json",
"Access-Control-Allow-Origin": "*",
},
body: JSON.stringify({ surveyResponse: "example" }),
});