ailon / markerjs

[Deprecated - use markerjs2]: Let your users annotate and mark images
https://markerjs.com
MIT License
103 stars 32 forks source link

Unable to save the image with Safari browser #38

Closed chunhz closed 4 years ago

chunhz commented 4 years ago

After I clicked save button, it does not allow me to save and gives the following error message: SecurityError: The operation is insecure. toDataURL — markerjs.umd.js:15:4404 (anonymous function) — markerjs.umd.js:15:4404 https://theme-creator.discourse.org/logs/report_js_error

image image

note: it works fine with Firefox & Google Chrome browsers, the issue only appears in Safari.

chunhz commented 4 years ago

fixed by putting crossorigin="anonymous" in the front, following the img attribute. image