OpenHistoricalMap / issues

File your issues here, regardless of repo until we get all our repos squared away; we don't want to miss anything.
Creative Commons Zero v1.0 Universal
19 stars 1 forks source link

CORS error loading production stylesheets from external websites #829

Closed 1ec5 closed 5 months ago

1ec5 commented 5 months ago

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.

Rub21 commented 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

Rub21 commented 5 months ago

Deployed in production https://www.openhistoricalmap.org/map-styles/main/main.json 🚀