MattKetmo / darkroomjs

Extensible image editing tool in your browser
https://mattketmo.github.io/darkroomjs
MIT License
1.42k stars 405 forks source link

Uncaught SecurityError: Failed to execute 'toDataURL' on 'HTMLCanvasElement': Tainted canvases may not be exported. #97

Open manzurahammed opened 8 years ago

manzurahammed commented 8 years ago

When check demo found this error.

dustinb commented 8 years ago

This error occurs when you load an image from an external domain. I ran into this when trying to create a js fiddle and link and image. The img src has to be same domain, had correct cross origin access, or use base64 data.

AnatolyRugalev commented 8 years ago

Read more about this: https://developer.mozilla.org/en-US/docs/Web/HTML/CORS_enabled_image