This is a static archive of our old OpenStreetMap Help Site. Please post any new questions and answers at community.osm.org.

Using API sometimes return CORS error

0

Hi, we are using your API for searching polygon locations for our website. It was working everything how it was supposed to, but unfortunately recently often there is a problem. We are directly using your API https://nominatim.openstreetmap.org/search.php and sometimes we have Access-Control-Allow-Origin. This is an urgent matter for us so please, advise us on how to solve the issue or tell us why is happening? There is also a problem when we try to search on https://nominatim.openstreetmap.org/ui/search.html?q=New+York, here screenshot https://prnt.sc/1xdxzc5. Thank you.

asked 26 Oct '21, 16:03

milica09's gravatar image

milica09
11113
accept rate: 0%


One Answer:

5

There is a known issue with OSM's Nominatim servers at the moment - see https://github.com/osm-search/Nominatim/issues/2485 .

This is an urgent matter for us

If this is urgent for you, you shouldn't be using the volunteer-run OpenStreetMap servers. These are run on a best-effort basis with no uptime guarantees, and subject to a usage policy which can change without notice. If you need a service with reliable uptime, you should find a commercial provider running an instance of Nominatim.

answered 26 Oct '21, 16:59

Richard's gravatar image

Richard ♦
30.9k44279412
accept rate: 18%

Thank you for your answer, could you please recommend us commercial provider running an instance of Nominatim?

(27 Oct '21, 08:12) milica09
1

The Nominatim wiki page lists some third-party providers.

(27 Oct '21, 08:37) scai ♦

Source code available on GitHub .