NOTICE: is no longer in use from 1st March 2024. Please use the OpenStreetMap Community Forum

Hi all,

We have implemented Open Street Map and It works great though. We are facing some challenges while accessing Open Street Map API from our endpoint.

The error is as follows: CORS Error Access to XMLHttpRequest at '' from origin 'http://localhost:4200' has been blocked by CORS policy: Request header field authorization is not allowed by Access-Control-Allow-Headers in preflight response.

How can we fix this issue urgently ?

Any help will be appreciated

Thanks in advance

asked 02 Aug '23, 08:28

SSD241993's gravatar image

accept rate: 0%

edited 02 Aug '23, 08:28

While SomeoneElse pointed out the technical problem you should be aware that the URL you currently use points to a demo service run by volunteers that can be down anytime and should not be used in production, esp. if something is "urgently".

If you need a reliable service than you should look out for providers offering geocoding apis as a service or install nominatim yourself.

Let's at least hope that you have read and adhere the usage policy that can be found here:

permanent link

answered 02 Aug '23, 12:42

Spiekerooger's gravatar image

accept rate: 16%

Likely this.

permanent link

answered 02 Aug '23, 09:58

SomeoneElse's gravatar image

SomeoneElse ♦
accept rate: 16%

edited 02 Aug '23, 09:58

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here



Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text]( "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:


question asked: 02 Aug '23, 08:28

question was seen: 1,734 times

last updated: 02 Aug '23, 12:42

NOTICE: is no longer in use from 1st March 2024. Please use the OpenStreetMap Community Forum