Cross Domain Get Request in JS/JQuery

前端 未结 5 1314
迷失自我
迷失自我 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:50

    As far as I know, there is no way to make a cross-domain request in JS, but you could just query your server and make the request from there.

    Edit: as Russ Cam said above, look into JSONP.

提交回复
热议问题