-
Notifications
You must be signed in to change notification settings - Fork 34
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Occasional CORS loading issue on domtoimage + Leaflet + Stamen (toner-lite) #158
Comments
FWIW, I am not getting CORS errors for the last 24 hours. Hooray. |
Hmm. Am now getting these errors again for the last few weeks but only in Chrome 86.0.4240.198 (Official Build) (64-bit), not in Firefox 82.0.3 (64-bit). To be clear, the tiles load initially (via Leaflet), but then fail to load in Chrome (and Edge) when requested a second time through domtoimage. |
Somewhat surprised to find these errors have now disappeared in Chrome and Edge. Although I have just updated Chrome to the latest version 86.0.4280.66 (Windows 10), and initially thought that may have fixed it, I see that the problem has also disappeared from Edge, despite the fact that this hadn't been updated since last week. Issue persists in Chrome 86.0.4280.67 (Mac) and Safari, though. It looked like a browser issue, but now it seems it may not be... |
Same issue here, but getting the error for only a single image: @MSCAU Have you found any workarounds? |
Just wanted to follow up on this, as we have been experiencing CORS errors also when trying to export a Leaflet map using html-to-image: https://github.com/bubkoo/html-to-image. It used to work smoothly before, so it is not clear what has changed. Currently using: |
@anti-destin yes. We ended up setting up a proxy, ie. sending the requests to fastly.net from the server instead of the browser, and then serving the titles to the browser from the same domain as the rest of the page. This works well in all browsers and we haven't had a CORS warning or error since. |
@MSCAU thanks for the insight! Very helpful. |
After having seen CORS errors for the last few days when loading Stamen tiles via domtoimage and Leaflet, inexplicably those errors had disappeared for most of today. They are now back (the last 30 mins). I can't imagine what else it could be. Are you people modifying the CORS settings at the moment?
The text was updated successfully, but these errors were encountered: