'No Transport' Error w/ jQuery ajax call in IE

前端 未结 5 1101
天命终不由人
天命终不由人 2020-11-27 10:31

I need to use foursquare API to search venues. Of course it is cross-domain.

It has no any problems in Firefox but in Internet Explorer (7, 8, 9 I\'ve tested).

5条回答
  •  天命终不由人
    2020-11-27 10:56

    jQuery.support.cors = true;
    
    $.ajax({
      crossDomain: true,
      url: "",
      type: "POST",
      dataType: "xml",
      data: soapMessage,
    });
    

    you need to make the cross domain value to true

提交回复
热议问题