I got a problem fetching the JSON, it works fine with static sites, but not with dynamic sites.
I tried JSONP too also, but I get the error :
Uncaught SyntaxError: Unexpected token :
What could be the source of error as JSONP makes the request, but can't get the variable?
$.getJSON('http://imdb-fetch.herokuapp.com/movie/tt5463162', function(data) {
console.log(data.message);
});
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script>