GeoNames Home | Postal Codes | Download / Webservice | About 

GeoNames Forum
  [Search] Search   [Recent Topics] Recent Topics   [Groups] Back to home page 
[Register] Register / 
[Login] Login 
Having problems with CORS  XML
Forum Index -> General
Author Message
storres



Joined: 12/09/2023 20:55:32
Messages: 1
Offline

I'm using the free API to get data to test it for an App that uses the paid version. For a couple of hours it worked fine but later I started getting 404 and the reason due to CORS.

Using Postman I get data but not from the app which is using axios to handle http requests. Also putting the url in the browser also returns 404 if I'm signed out even though I'm passing the correct username as a query parameter. However if I'm logged in I see the results as expected.

Also, it is worth noting that the ssl certificate seems to be outdated.


Regarding my request I'm using this format.


Code:
 <a href="https://api.geonames.org/search?type=json&name=<cityName>&username=<userName>" target="_blank" rel="nofollow">https://api.geonames.org/search?type=json&name=<cityName>&username=<userName></a>
 





marc



Joined: 08/12/2005 07:39:47
Messages: 4416
Offline

the secure endpoint for the free api is secure.geonames.org

[WWW]
 
Forum Index -> General
Go to:   
Powered by JForum 2.1.5 © JForum Team