I'm trying to set up a website to run on the local file system and call an XML file, but I'm getting access control origin errors:
Origin null is not allowed by Access-Control-Allow-Origin.
I've tried switching the datatype to jsonp and setting crossdomain to true:
$j.ajax({
crossdomain: true,
url: 'xml/vehicles.xml',
dataType: "jsonp",
success: function( vehicleXML ) {
supertree.parseVehicles($j(vehicleXML).find("vehicles"), null);
supertree.vehiclesLoaded = true;
if(supertree.scenesLoaded) supertree.ready();
}
});
But it doesn't work. Any idea on how to accomplish this? Preferably without a proxy?