开发者

Cross-Domain, Client-Side Api Call without JSON or JSONP -- is it possible?

开发者 https://www.devze.com 2023-02-16 07:56 出处:网络
I didn\'t 开发者_StackOverflow社区think it was possible to make a cross-domain, client-side api call and use the results within a web page without making the call using JSONP. A colleague recommended

I didn't 开发者_StackOverflow社区think it was possible to make a cross-domain, client-side api call and use the results within a web page without making the call using JSONP. A colleague recommended DOJO for this, but dojo.io.script seems to require jsonp. If it's possible, I'll dig into the dojo some more -- but i'm thinking it's a lost cause.


In HTML5 there is limited support for cross domain requests

see HTML5 Security in a Nutshell

See also Cross-domain XHR using postMessage and HTML5-Cross-browser-Polyfills


Other than Adardesign's answer, the only way would be to create a javascript bridge to a signed java applet and do this indirectly.


Take a look at this comparison.

0

精彩评论

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

关注公众号