Whenever I do the following ajax request to get the html of a page:
$.ajax({
type: 'GET',
dataType:"jsonp",
url: link,
success: function(response){console.log(response)},
async:true //asynchronous request
});
I get the error: "Uncaught SyntaxError: Unexpected token <"
Why is this and how can I solve it?