Uncaught SecurityError: Failed to execute 'toDataURL' on 'HTMLCanvasElement': Tainted canvases may not be exported.
Hi, I have attempted to use this plugin both in Chrome (desktop) and also on my android phone (4.4.2), and I am receiving the same error when attempting to save the canvas.
I have tried doing some research into this error message, but all I can find are things that talk about CORS, so I'm not sure if that applies to trying to write an image to a local storage (either from chrome browser on desktop or phonegap android app).
I would greatly appreciate any thoughts you might have on how to get around this error.
thanks!
@Nlaux - yeah, I am not sure how you would get around this... I am assuming the issue is loading an image into the canvas from a file:// reference?

I got similar error as attached. I am using cordova 4.0 with android 4.1 and 4.2 device. Already installed: org.apache.cordova.file & org.apache.cordova.file-transfer (actually not sure if your plugin need them) Canvas2ImagePlugin.js: Line 22 : Uncaught Error: SECURITY_ERR: DOM Exceoption 18
@sonicwong same question to you.. are you loading any images into the canvas from a local file://
??
@devgeeks I found the error come out when I added SVG inside the canvas (html display is working well)
here is my code: http://jsfiddle.net/qg3eksph/1/
Hrm... seems to be this: http://stackoverflow.com/a/13829600/878602
:(
Is there has solutions?
i'm facing this issues in latest versions of android i.e. API 22 & above below the API 22, the plugin is working perfectly fine....!!!
Thanks,