开发者

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

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜