API not working with repository deployed from GitHub

Hi all,

I have code uploaded in a repository on GitHub (GitHub - KarifaDev/Dynamic-login), this code works well when used from my own computer. But when deployed from GitHub to Netlify the login doesn’t work. I’m thinking there’s a problem with the API? universitylogin.netlify.app

API used: [http://webbred2.utb.hb.se/~fewe/api/api.php?data=students]

Could someone help me with this?


Checking the dev tools shows the issue:

You need to use https:// instead of http://.

In any case, be mindful of the CORS issue: Cross-Origin Resource Sharing (CORS) - HTTP | MDN (mozilla.org) which might come up after you solve the above issue.