Why does not my project with JQuery work on github pages? [closed]

0

This is my first project using JQuery that obtains data from an API and shows them

link

It works well in codepen, but when I uploaded it to github pages the requests to the API stopped working

link

If someone knows why the project does not work on github pages, please let me know the cause.

Thank you!

    
asked by Lorem 24.11.2016 в 17:05
source

2 answers

3

To avoid this kind of errors, the ideal is to put the URLs of the resources without http (s):

//www.animalesyanimales.com/wp-content/uploads/2009/04/20081102164739-fotos-gatos.jpg

So the browser will use the corresponding protocol depending on whether the page is accessed through SSL or not to load external content.

    
answered by 24.11.2016 в 17:48
0

When making the request to your .json file, change the http to https

    
answered by 24.11.2016 в 17:21