I know that I can bypass the same domain policy by creating an intermediary file call like this:
$.getJSON('service_facade.php', function(data) {
options.series = data;
// Create the chart
var chart = new Highcharts.Chart(options);
});
the service_facade.php contents looks like this in php:
print_r($_GET["http://myservice.com/parameters"]);
The problem is that the chart I am accessing is not rendering. Am I doing this wrong?
The way around the same-origen policy is to create a php file or the like which does the service interaction for you. It is not bound to the policy like AJAX is. Once you invoke the facade php file that does the remote domain call and returns data, you can access this data via php.