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.
精彩评论