Twitch.tv JSON API help

Twitch.tv JSON API help
0

#1

Hey guys and girls, looking for a little help with the Twitch.tv app project.
Code: https://codepen.io/MarcelPenn/pen/zPbZzM

Currently I’m using the alternative api call url provided by FCC, but can’t seem to get any data when I run it and just get an error. I know others have had issues with this as well so any help would be appreciated! Thanks,

Marcel


#2

Have a look in the browser console, you are getting a CORS error. You can easily fix this by changing the url to:

var url ="https://wind-bow.gomix.me/twitch-api?callback=?";

#3

Thanks! Seems to be working now. Not sure why, but it’s working haha