Replies: 1 comment
-
There are a couple of issues here: First of all, you are asking for a result in HTML format which gets you a forward to the Nominatim UI in return. That does intentionally not come with CORS headers. Have a look at the format parameter. When fixed, it will still not work because you do not send a custom user agent as required by our usage policy. Axios is one of the libraries that is currently blocked with the generic user agent. Finally, it looks like you are not properly sanitizing your data before sending the request. The URL contains a parameter |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Can someone tell if I'm doing something wrong here?
Response:
Access to XMLHttpRequest at 'https://nominatim.openstreetmap.org/search?city=london&country=england' from origin 'http://localhost:5173' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.
GET https://nominatim.openstreetmap.org/search?city=london%20england&country=null net::ERR_FAILED 302 (Found)
Beta Was this translation helpful? Give feedback.
All reactions