Monday 5 June 2017

Has error getting JSON data from a specific url

I know this a repeated issue but I could not find an answer to solve my problem. I want to get JSON data of this url: http://www.aparat.com/etc/api/video/videohash/rzKus You can see my code by this link$.getJSON("https://www.aparat.com/etc/api/video/videohash/rzKus",function(data){ console.log(data); });

AS you can see in console of your browser it gives a CORS error. I have used nodejs and express and it gives the same error in my localhost. I have used CORS npm package but it does not work. Something that is strange is that I could get JSON data from other urls but not from the url I have mentioned.



via user3741675

No comments:

Post a Comment