JQuery external Ajax call not working in IE

后端 未结 7 2123
梦毁少年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:05

    A couple of things:

    • The answers/conversation for this question has gone a bit out of context. Actually from the question it was more implied how to make ajax calls in IE. [Atleast modify the question title, else the question is very localized]

    A couple of solutions to this cross-domain issue:

    1. CORS[compatible after IE7]
    2. JSONP [ here actually the browser takes in the input thinking it is a script]
    3. server side encoding

提交回复
热议问题