I have been trying to use it to get the JSON but it always logs this:
I took out mode: ‘no-cors’ and this is the result I get now. It doesn’t fetch.
I have been trying to use it to get the JSON but it always logs this:
I took out mode: ‘no-cors’ and this is the result I get now. It doesn’t fetch.
I think that you forgot to put “?callback=?” at the end of your link.
If the URL includes the string “callback=?” (or similar, as defined by the server-side API), the request is treated as JSONP instead.
so your code should be like this:
$.getJSON("https://wind-bow.glitch.me/twitch-api/streams/freecodecamp/?callback=?"
Nope that didn’t work.
If I click on the redirect link it does give me the json but still can’t access it from my code.