cross domain request returning Uncaught SyntaxError: Unexpected token : error
问题 I am trying to get the JSON object that is created in a remote server and pull it on the page. I have tried every combination with "data type", "type", callback etc but keep getting same "unexpected token :" error. This is the code that I have tried: $(function(){ var url = "http://someurl.com/api/count?url=http://www.yyets.com"; $.jsonp({ url: url, corsSupport: true, // if URL above supports CORS (optional) jsonpSupport: true, // if URL above supports JSONP (optional) jsonp:'jsonp', dataType