Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Serve the api link over https instead of http #19

Open
MicahBala opened this issue Jun 7, 2021 · 4 comments
Open

Serve the api link over https instead of http #19

MicahBala opened this issue Jun 7, 2021 · 4 comments

Comments

@MicahBala
Copy link

Could you serve the api links over https instead of http. Calling the universities api from a live application hosted over https (on netlify.com) yields error - App.js:42 Mixed Content: The page at 'https://quizzical-engelbart-ad57cc.netlify.app/' was loaded over HTTPS, but requested an insecure resource 'http://universities.hipolabs.com/search?country=Nigeria'. This request has been blocked; the content must be served over HTTPS.

@scott-schibli
Copy link

Hey, clearly they have not made this possible yet. How did you get around this? Did you find another api I can't seem to find any online. Let me know!

@weebao
Copy link

weebao commented Jan 29, 2023

Hey, clearly they have not made this possible yet. How did you get around this? Did you find another api I can't seem to find any online. Let me know!

I fetched the json data from https://raw.githubusercontent.com/Hipo/university-domains-list/master/world_universities_and_domains.json and then convert their searching algorithm from Python to JavaScript. There are a lot JavaScript libraries that you can use too.

@nishasandhu
Copy link

Hey, clearly they have not made this possible yet. How did you get around this? Did you find another api I can't seem to find any online. Let me know!

I fetched the json data from https://raw.githubusercontent.com/Hipo/university-domains-list/master/world_universities_and_domains.json and then convert their searching algorithm from Python to JavaScript. There are a lot JavaScript libraries that you can use too.

can you hit the raw json file with an axious request like you would hit the http endpt? it works locally for me but not sure its working over a server

@weebao
Copy link

weebao commented Jan 5, 2024

Hey, clearly they have not made this possible yet. How did you get around this? Did you find another api I can't seem to find any online. Let me know!

I fetched the json data from https://raw.githubusercontent.com/Hipo/university-domains-list/master/world_universities_and_domains.json and then convert their searching algorithm from Python to JavaScript. There are a lot JavaScript libraries that you can use too.

can you hit the raw json file with an axious request like you would hit the http endpt? it works locally for me but not sure its working over a server

It worked fine for me on the server.
Here's the website I made with it

https://uniweather.vercel.app

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants