Hello , so i get an error with ajax when i move the site i scripted to my server ( so on my localhost it works ) . The error is something like origin not allowed by access control allow origin
var trimitere = $.ajax({
url: "underpublic/searchforprice.php",
type: "get",
crossDomain: true,
data: coduri + '&callback=?',
success: function(response) {
if(response != ''){
$(".loader").hide(500);
$("#aratarez").append(response);
}else{
$("#rezultate").hide(400, function(){
alert("fail");
}); // end functie hide
} // end if-else
} // end succes
}); // end ajax