rowanwins / leaflet-easyPrint

A leaflet plugin which adds an icon to print the map - Demo @ http://rowanwins.github.io/leaflet-easyPrint/
MIT License
248 stars 137 forks source link

CORS authentication not working #120

Closed steven-coding closed 3 years ago

steven-coding commented 3 years ago

Unfortunately, the underlying package:

has a CORS issue: https://github.com/tsayen/dom-to-image/issues/255

which makes it impossible, to export maps cross origin (between two domains) when authentication (e.g. cookie) is mandatory.

This can be fixed by switching to a more recent dom-to-image fork like: dom-to-image-more https://www.npmjs.com/package/dom-to-image-more https://github.com/1904labs/dom-to-image-more