Closed oldwired closed 2 years ago
I would be totally fine with an option to enable cors. I'd even enable it by default.
The ticket might have been premature. I'm not sure if that's the problem.
When I try the "naked" request in Postman (or just via the browser address bar) the Access-Control-Allow-Origin *
header is present. There must be something else wrong. Perhaps the problem is with the geocoding plugin I use.
Did you find out something? Can we close this?
Oh yes, like I wrote. I found that it is enabled. So there must be something wrong either with the geocoding plugin I use, or how I use it.
Have you found a solution?
Is your feature request related to a problem? Please describe. I host nominatim on a server, but want to use not only the API programmatically but call it via https://github.com/perliedman/leaflet-control-geocoder from leaflet maps hosted on other domains or locally. But that fails due to the CORS policy.
Describe the solution you'd like An option to set
Header set Access-Control-Allow-Origin "*"
in the apache.conf See how the popular overv/openstreetmap-tile-server handles it: https://github.com/Overv/openstreetmap-tile-server/commit/451f335bc599e1f7c136d15b241905808c5084abDescribe alternatives you've considered I could perhaps add this header via a reverse proxy