Random Quote Generator help codepen

Random Quote Generator help codepen
0.0 0

#1

Why my Random Quote Generator is not working?


#2

Try using a different website as your API. It seems that CrossOrigin.me is having troubles with the CloudFlare from Forismatic. I didn’t look at your code completely, so there may be an additional issue that needs to be solved, but as of right now, it isn’t able to retrieve any data from the API.


#3

adding to @Kaima’s advise, this is the error found on your API request,

XMLHttpRequest cannot load http://api.forismatic.com/api/1.0/?method=getQuote&format=json&lang=en. No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://s.codepen.io' is therefore not allowed access.

You try to check this blog below for you issue. Hope it can help you. Cheers!