Reputation: 1786
I am drawing an image onto canvas. after that I do canvas.toDataUrl("image/png"); But it doesn't go fine. Here is the link to jsfiddle!
Upvotes: 0
Views: 1603
Reputation: 179697
You cannot use toDataUrl
after loading an image from another domain into the canvas, as it would open up a security hole (information disclosure from other domains).
See why is this toDataURL line a security error?.
Upvotes: 1