开发者

Cross-domain AJAX requests

I know Stackoverflow is full of this question, but...

How to make cross-domain AJAX request?

I do not want to use

  • Proxy server
  • Access-Control-Allow-Origin doesn't work
  • jQuery.getJSON()
  • jQuery.load()
  • jQuery.get()

becau开发者_如何学Gose, I also need to send headers

X-API-Version = DEV

Thanks for reply!


You can't do this, not if you exclude the methods above. Cross-domain requests (if you want to see content) can only be made with JSONP or a proxy server...and you can't set headers with JSONP.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜