Closed 1ec5 closed 5 months ago
I have added Access-Control-Allow-Origin: *
for map-styles/
path, it is working for staging https://staging.openhistoricalmap.org/map-styles/main/main.json
Deployed in production https://www.openhistoricalmap.org/map-styles/main/main.json 🚀
Per https://github.com/OpenHistoricalMap/issues/issues/827#issuecomment-2174577539, we now prefer that external websites load the production stylesheets from https://www.openhistoricalmap.org/map-styles/ instead of from the GitHub Pages site at https://openhistoricalmap.github.io/map-styles/. However, this endpoint is blocking requests from external websites such as wiki.openstreetmap.org with the error “CORS header 'Access-Control-Allow-Origin' missing”. We need to allow the public to access the map-styles/ path with a
*
wildcard.