Trying to work with this JSON file: The "data" array is empty most of the time.
Encountering cross-domain issues, receiving an 'Access-Control-Allow-Origin' error message.
$.ajax({
url : "http://www.oref.org.il/WarningMessages/alerts.json",
type : 'GET',
crossDomain: true,
data : "json",
dataType : "json",
success : function(res) {
console.log('res',res);
}
});
Attempted JSONP methods to retrieve the data with no luck. Can anyone assist in fixing the code?