Access control for cross site requests in Internet Explorer

后端 未结 6 2388
谎友^
谎友^ 2020-12-28 21:20

I am trying to make an AJAX call from several domains to a single one which will handle the request. Enabling Cross domain in Firefox and Chrome was easy by setting the head

6条回答
  •  执念已碎
    2020-12-28 22:05

    I got IE8 and 9 working with just jQuery $.ajax (jQuery version 1.7.2)

    jQuery.support.cors = true;
    jQuery(function() {
    $.ajax({
        crossDomain : true,
        dataType: 'html',
        //...
        });
    });
    

提交回复
热议问题