$.ajax({
type: 'POST',
url: "https://domain.com",
crossDomain: true,
data: xml,
dataType: 'xml',
success: function(responseData, textStatus, jqXHR)
{
console.log(responseData);
},
error: function(responseData, textStatus, errorThrown)
{
console.log(responseData, textStatus, errorThrown);
}
});
Ошибка:
XMLHttpRequest cannot load https://domain.com No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://demo.ua' is therefore not allowed access.
Как правильно отсылать такой запрос?