I’ve sensed a lot of ramble about easy cross-domain XmlHttpRequest methods with new HTML5 JS XHR techniques. Given the standard JavaScript XHR code below…
var xhr=new XMLHttpRequest();
xhr.open("GET",url,false);
xhr.send();
var output=xhr.responseXML;
…what would be the equivalent HTML5 XHR cross-domain-enabled code that would give the same output?
There’s nothing different from the JS perspective. The cross-domain authorization is handled by the browser on the HTTP level using CORS, so your server has to support cross-domain negotiation.