How i can send form data to another domain and take response?
I try to send it by ajax, but i have error
Allow-Control-Allow-Origin.
If i send normal html form i cant get response
I need this to make API SMS.
edit: Here is ajax:
$("#submit").click(function(e)
{
var postData = $('#form-tab-client').serializeArray();
$.ajax(
{
url : 'https://another_domain_gateway',
type: "POST",
data : postData,
success:function(data, textStatus, jqXHR)
{
alert('sucess');
console.log(data);
console.log(textStatus);
console.log(jqXHR);
},
error: function(jqXHR, textStatus, errorThrown)
{
alert('error');
console.log(errorThrown);
console.log(textStatus);
console.log(jqXHR);
}
});