Cross Domain Get Request in JS/JQuery

前端 未结 5 1307
迷失自我
迷失自我 2020-12-16 20:22

Is there a way without using a server proxy to perform a cross domain GET or POST request?

5条回答
  •  执念已碎
    2020-12-16 20:44

    Using YQL is an easy way of doing cross domain ajax. You can specify to have a JSON or XML object returned. IBM has a good tutorial: http://www.ibm.com/developerworks/web/library/wa-aj-jsonp2/index.html

    Though just search for yql cross domain and it'll bring up numerous tutorials.

提交回复
热议问题