in domain1 (JQuery):
//e.g. data = "name="+$name+"&email="+$email;
$.ajax({
crossDomain : true,
type: "POST",
data: data,
url: "domain2.com",
success: function(html){
console.log('GTRS success!');
}
});
in domain2 (PHP):
<?php
header("Access-Control-Allow-Methods: GET, POST, OPTIONS");
header("Access-Control-Allow-Credentials: true");
header("Access-Control-Allow-Origin: *");
header("Access-Control-Allow-Headers: Content-Type, * ");
// and my code
?>
It work very well in all browsers excerpt MS IE,
how to fix this problem?
any idea?











