I've been struggling to read a JSON file from a URL and display it. Despite searching through multiple forums, I can't seem to fix the issue.
Here's the URL:
The error message I'm encountering is: XMLHttpRequest cannot load.
Below is the code snippet I've been using:
$.getJSON("http://webapp.armadealo.com/home.json", function(data){
alert(data);
});
I've attempted adding parameters to the URL like:
&callback=?
and trying to make it a JSONP request – unfortunately, no luck. I've also included the following meta tag:
<meta http-equiv="Access-Control-Allow-Origin" content="*" />
But still no success.
Is there something that needs to be configured on the server-side? If anyone has encountered this problem before and found a solution, please help me out! Thank you!