Cross Domain Request and JQuery

后端 未结 2 975
野的像风
野的像风 2021-01-26 20:22

Im trying to make a cross domain request to a web service via jquery using $.getJSON() and it works fine! However, when I try to make the same request in Internet Explorer 7 or

相关标签:
2条回答
  • 2021-01-26 20:54

    JSONP is here for this purpose. Check the JSONP section in getJSON jQuery documentation.

    0 讨论(0)
  • 2021-01-26 20:59

    IE explicitly blocks cross domain requests. Better to use a cross domain proxy on your server for better results!

    Some documentation: http://ajaxpatterns.org/Cross-Domain_Proxy

    0 讨论(0)
提交回复
热议问题