简体   繁体   中英

Canvas.toDataUrl(“image/png”) is not working properly

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!

http://jsfiddle.net/QcS4u/34/

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? .

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM