# Help with forismatic API for random quote generator project?

**URL:** <https://forum.freecodecamp.org/t/help-with-forismatic-api-for-random-quote-generator-project/164362>\
**Category:** General\
**Created:** [December 18, 2017, 8:16pm UTC](https://forum.freecodecamp.org/t/help-with-forismatic-api-for-random-quote-generator-project/164362 "2017-12-18T20:16:55Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Vetsen86](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/vetsen86/32/79019_2.png) [@Vetsen86](https://forum.freecodecamp.org/u/Vetsen86)\
**Post date:** [December 18, 2017, 8:16pm UTC](https://forum.freecodecamp.org/t/help-with-forismatic-api-for-random-quote-generator-project/164362/1 "2017-12-18T20:16:55Z")

</div>

Hey everybody! First time poster here, go easy on me! 🙂

So I’ve been working on the random quote generator intermediate front-end project. In my search for an API to use to generate the quotes, my frontrunner was the Forismatic API at [forismatic.com](http://forismatic.com). It’s free and unlimited which suits my needs perfectly, except for one problem: I just can’t get it to work! I keep getting a CORS error which says I am not allowed access because “no access-control-allow-origin header is set on the requested resource”. I read the CORS documentation to see if I could find a solution, but I couldn’t understand much of it. Help? Here’s a link to my codepen project: [https://codepen.io/Vetsen86/pen/YEBMmp](https://codepen.io/Vetsen86/pen/YEBMmp)

The relevant get request is commented out near the top of my JS code. I went ahead and hard coded an object with a bunch of quotes in it to continue with the project, but I’d really like to do it with an API. Please help!

---

<div class="post-metadata">

**Author:** ![ILM](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/ilm/32/363239_2.png) [@ILM](https://forum.freecodecamp.org/u/ILM)\
**Post date:** [January 17, 2021, 8:32pm UTC](https://forum.freecodecamp.org/t/help-with-forismatic-api-for-random-quote-generator-project/164362/3 "2021-01-17T20:32:05Z")

</div>

Closed on January 17, 2021, 8:32pm UTC


