I'm trying to retrieve data from a web API in JSON. And I'm getting the "No 'Access-Control-Allow-Origin' header is present on the requested resource." error, I understand why I'm getting this, but don't know what I need to do next in order to allow me to get the data from the different domain. I have recently and very quickly learnt about JSONP and stuff, but Im having a hard time understanding what I need to do.
$(document).ready(function() {
$.getJSON('http://www.thewebsite.net/json',
function(value) {
document.write(value.id);
});
});