Jump to content


Cross-Domain Jquery Ajax - Problem In Ms Ie

  • Please log in to reply
1 reply to this topic

#1 damian1923

  • New Members
  • Pip
  • Newbie
  • 2 posts

Posted 15 November 2012 - 12:40 PM

I need send data between 2 domains:

in domain1 (JQuery):

    //e.g. data = "name="+$name+"&email="+$email;
	 crossDomain : true,
	 type: "POST",
	 data: data,
     url: "domain2.com",
	 success: function(html){
	  console.log('GTRS success!');

in domain2 (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?

#2 txmedic03

  • Members
  • PipPipPip
  • Advanced Member
  • 313 posts
  • LocationCall, TX, USA

Posted 20 November 2012 - 11:29 AM

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.


I can't stop you from doing something silly, but at least I can help you do it right.

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users