rjurado01 edited a comment on issue #79: Canvas gets tainted when drawn with an image using the custom scheme URL: https://github.com/apache/cordova-plugin-wkwebview-engine/issues/79#issuecomment-595180449 Same error, I have an image with this src: `"file:///var/containers/Bundle/Application/27131FF1-0862-4240-851F-FBDFFDDC47D4/HelloCordova.app/www/49dfd8c7f5effbcd57afcb1c060d6322.png"` When I run this code: ```js const image = document.getElementById("image"); var canvas = document.getElementById("canvas"); var ctx = canvas.getContext("2d"); ctx.drawImage(image, 0, 0); canvas.toDataUrl(); ``` I get this error: `SecurityError: The operation is insecure.` Using UIWebview this code works. **Update** I have fixed this error migrating to `cordova-plugin-ionic-webview` plugin. Read [this doc](https://ionicframework.com/docs/v3/wkwebview/)
---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: [email protected] With regards, Apache Git Services --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
