Cross-Domain Request Errors Explained

Found a nice blog post on why I keep getting this error for Weather App and Twitch TV assignments.

XMLHttpRequest cannot load https://wind-bow.gomix.me/twitch-api/channel/ESL_SC2. Redirect from ‘https://wind-bow.gomix.me/twitch-api/channel/ESL_SC2’ to ‘https://wind-bow.glitch.me/twitch-api/channel/ESL_SC2’ has been blocked by CORS policy: No ‘Access-Control-Allow-Origin’ header is present on the requested resource. Origin ‘https://s.codepen.io’ is therefore not allowed access.

The blog post: https://jvaneyck.wordpress.com/2014/01/07/cross-domain-requests-in-javascript/

I used the proxy work around another camper posted on here a while for my Weather App but I’m trying to avoid that for my Twitch.tv project - so I’m researching it a bit more to understand the issue a bit better.

1 Like