socib / Leaflet.TimeDimension

Add time dimension capabilities on a Leaflet map.
MIT License
435 stars 138 forks source link

Error: No 'Access-Control-Allow-Origin' header is present on the requested resource. #157

Closed beefhotpot closed 2 years ago

beefhotpot commented 6 years ago

Hi, I'm trying to create and add a timeDimension layer to the map, using my WMS layer provided by geoserver. I assume it should be easy but I got the error: No 'Access-Control-Allow-Origin' header is present on the requested resource. Anyone can help me on this? Cheers

VictorVelarde commented 6 years ago

You have to enable CORS in your server, so the plugin can work, requesting some otherwise blocked metadata. Have a look at http://docs.geoserver.org/latest/en/user/production/container.html

beefhotpot commented 6 years ago

Thanks man! It solved my problem!

leandrosramirez commented 2 years ago

Thanks Victor, I had the same problem and can solve it with your help.