Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trialThom Benjamin
10,494 PointsAPI unsafe (HTTP instead of HTTPS) doesn't work on Github Pages, is there a solution for this?
The API that I used to get the names of the astronauts is not secure, HTTP instead of HTTPS, so GitHub Pages won't let me fetch their json data. Is there a way to fix this? Everything works locally, but not when I try to showcase it.
It's the API used in the JavaScript lesson for Promises, and it unfortunately doesn't work when changing it to https. http://api.open-notify.org/astros.json
1 Answer
KRIS NIKOLAISEN
54,972 PointsThis stack overflow might be something to try. I haven't tested it myself.
Thom Benjamin
10,494 PointsThom Benjamin
10,494 PointsIt works, awesome! Thanks :)