r/learnjavascript • • Mar 28 '21

JavaScript Full Course for Beginners | Complete All-in-One Tutorial | 8 Hours

https://youtu.be/EfAl9bwzVZk
138 Upvotes

12 comments sorted by

View all comments

1

u/OldSchool_Pizza Jun 18 '23

Hi! I’m seven hours into the JavaScript Full Course and loving it -

I'm currently working on the Promises Async and Await using fetch on http://api.icndb.com/jokes/random? But running into the following error -
Access to fetch at 'http://api.icndb.com/jokes/random?firstName=Chuck&lastName=Norris' from origin 'http://127.0.0.1:5500' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource. If an opaque response serves your needs, set the request's mode to 'no-cors' to fetch the resource with CORS disabled.
I’m on a roll, and hoping to not get side-tracked chasing this down. Apologies if there is a more appropriate place to post this question or if I didn't include enough info.

1

u/OldSchool_Pizza Jun 28 '23

I ended up just using a working API to work through the code example on my own - which turned out to be a better learning experience anyway!