damian1923 Posted November 15, 2012 Share Posted November 15, 2012 I need send data between 2 domains: 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? Quote Link to comment https://forums.phpfreaks.com/topic/270723-cross-domain-jquery-ajax-problem-in-ms-ie/ Share on other sites More sharing options...
txmedic03 Posted November 20, 2012 Share Posted November 20, 2012 What version of MSIE are you trying to use? It is completely possible that the version of MSIE you are using simply doesn't support cross-domain ajax. I can't give you a definitive answer on the subject as my experience is fairly limited on the subject, but I'm betting that someone who knows more will probably be along later to say something about how Microsoft is very anti-standard compliant and when all the other browsers are embracing new technologies and standards Microsoft runs and hides from them and invents their own alternative. Okay, yes I am a little (a lot) anti-Microsoft when it comes to internet technologies, but I can tell you that I use cross-domain ajax on a project and it does work in IE10 on Windows 8. If I have done nothing else, perhaps that little tid bit will give you some glimmer of hope that your issue can be resolved. If I come across anything useful in my random googling of ajax/html/css queries, I'll get you some hopefully more useful information. Some people watch TV or play video games when they are bored; I play google roulette. Quote Link to comment https://forums.phpfreaks.com/topic/270723-cross-domain-jquery-ajax-problem-in-ms-ie/#findComment-1393749 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.