开发者

Cross-domain AJAX requests

开发者 https://www.devze.com 2023-01-27 00:52 出处:网络
I know Stackoverflow is full of this question, but... How to make cross-domain AJAX request? I do not want to use

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

精彩评论

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