MazeMap / Leaflet.TileLayer.PouchDBCached

A Leaflet tile layer which caches into PouchDB for offline use
MIT License
208 stars 68 forks source link

Firefox and SecurityError #20

Closed claudep closed 8 years ago

claudep commented 8 years ago

On Firefox, I'm getting the following errors:

SecurityError: The operation is insecure.
    var dataUrl = this._canvas.toDataURL(this.options.cacheFormat);

Any suggested workaround?

IvanSanchez commented 8 years ago

Your canvas is tainted.

https://github.com/MazeMap/Leaflet.TileLayer.PouchDBCached#cross-origin-resource-sharing https://developer.mozilla.org/en-US/docs/Web/HTML/CORS_enabled_image

Also, please do not use this bug tracker as a channel for support.

claudep commented 8 years ago

Sorry :-( But this could be used as a FAQ entry in the README. Tell me if you are interested by a patch.

IvanSanchez commented 8 years ago

The CORS section on the README already covers that. If you feel the wording is inadequate, do send a PR.

claudep commented 8 years ago

By the way, it would be nice if the demo was working again, so as I could plainly see if my code was at fault or if it was a browser issue.