I am building a project using the p5.js library, along with p5.sound, p5.dom and p5.speech. I loaded all the library files into the Glitch project instead of accessing them through the web.
I am trying to access the Rhyme Brain API for a project. But I am getting this error message:
That’s right - it looks like https isn’t provided by rhymebrain. To immediately get around this, you can access the http version of your project at http://rhyme-maker.glitch.me/ where the mixed-content issue won’t be a problem. Longer-term, you can request the data from rhymebrain on the server-side and provide it to the client-side yourself, so you can ensure it’s over https.
Longer-term, you can request the data from rhymebrain on the server-side and provide it to the client-side yourself, so you can ensure it’s over https.
Can you give me a bit of guidance as to how I would execute this request? Would this be in the form of a JSON file that I would load in the project? This is one of my first attempts working with an API, so I’m not well versed in all the details of how it works.