javascriptajaxhttpsgeonames

How do I have Geonames api work with https?


I'm sending ajax requests to Geonames Search api. It works pretty well on http protocol.

But when I switch to https (both my own server and the api requests), my requests are blocked by the browser: Geonames https certificate seems to be invalid.

Did I miss something?


Solution

  • Oh! I coudn't find the response on Stackoverflow. But is was on Geonames forum already:

    Https requests should be sent to secure.geonames.org instead of api.geonames.org. That's it!