CORS and JSONP
We have support for JSONP and CORS. Here are two examples with jQuery:
$.ajax({
url: "https://simpleanalytics.com/simpleanalytics.com.json?callback=?",
dataType: "jsonp",
success: function (data) {
console.log(data);
},
});
$.ajax({
url: "https://simpleanalytics.com/simpleanalytics.com.json",
success: function (data) {
console.log(data);
},
});
We append the Access-Control-Allow-Origin
-header with the *
-value , so any modern browser should accept the request without any effort.