JQuery external Ajax call not working in IE

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

    From jQuery documentation

    Due to browser security restrictions, most "Ajax" requests are subject to the same origin policy; the request can not successfully retrieve data from a different domain, subdomain, or protocol.

    and Same Origin Policy on Wiki

提交回复
热议问题