Reputation: 20078
UPDATE:
Mixed Content: The page at 'https://myapp.herokuapp.com/#/employees' was loaded over HTTPS, but requested an insecure XMLHttpRequest endpoint 'http://api.geonames.org/countryInfoJSON?username=design1online'. This request has been blocked; the content must be served over HTTPS.
I'm trying to call the below api from one of my app in heroku and I'm getting the below error
Do I need to add-on SSL?
I have even tried without http:
something like this:
//api.geonames.org/countryInfoJSON?username=design1online
API call:
http://api.geonames.org/countryInfoJSON?username=design1online
Error:
failed to load resource: net::err_ssl_protocol_error
Upvotes: 5
Views: 7546
Reputation: 9
adding S to the http tag actually worked for me, I just had the issue today
<script src="https://maps.googleapis.com/maps/api/js?region=GB"></script>
Upvotes: -1