grinat / leaflet-simple-map-screenshoter

Leaflet plugin which take screenshot of map
MIT License
71 stars 19 forks source link

Blocked by cors when taking a screenshot #31

Closed Hugo01 closed 2 years ago

Hugo01 commented 2 years ago

I get multiple errors saying "Access to XMLHttpRequest at 'WMSLAYERURL....' from origin 'http://localhost:8085' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource. when i click the screenshot button I'm pretty sure this has something to do with the WMS layers I have on the map Maybe the lib is requesting the layers using the "crossOrigin" parameter?