Access to XMLHttpRequest at 'https://mystrore.com/AppForOrder/index.php' from origin 'https://mystro

Gaganjain
Tourist
8 0 1

var act='create_draft_order';
var draft_order={
'variant_id': variant_id,
'quantity' : quantity,
'amount' : amount,
'action' : act
};
$.ajax({
type: "POST",
url: "https://mystrore.com/AppForOrder/index.php",
data: draft_order,
success: function(data){
alert(data);
}
});
Access to XMLHttpRequest at 'https://mystrore.com/AppForOrder/index.php' from origin 'https://mystrore.myshopify.com' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.
shop_events_listener-2c6237918c4bbec8783d8ceecd5759edc38afa9b5bef55134462710955517539.js:1 POST https://mystrore.com/AppForOrder/index.php net::ERR_FAILED

 

what should i do for that?

 

0 Likes