JQuery external Ajax call not working in IE

后端 未结 7 2109
梦毁少年i
梦毁少年i 2020-12-21 21:37

I have an ajax script that sends some data to an external URL. The external URL is hosted on the same server, however the domain is different than the source of the ajax cal

7条回答
  •  情深已故
    2020-12-21 22:14

    I'm surprised any of them are working. Browsers generally don't allow ajax calls to a domain other than the one the current page came from.

    The main exception to this rule is if you make an ajax call using jsonp (json with padding). You can do this with jQuery, here's how. Look under the dataType option.

提交回复
热议问题