5r1m opened a new issue #79: Canvas gets tainted when loaded with an image 
using the custom scheme
URL: https://github.com/apache/cordova-plugin-wkwebview-engine/issues/79
 
 
   **Details:**
   We are migrating from UIWebview to wkWebview for iOS, we got in to problem 
where Canvas gets tainted when loaded with an image using the custom scheme
   
   **Problem**
   For iOS, we are using setURLSchemeHandler to load the resources from Library 
folder. Resources (images, videos, pdfs etc) are loaded fine after doing 
necessary additions to meta tag to allow the new custom scheme being used. How 
ever canvas is getting tainted when we draw the image using the custom scheme 
and throws security CORS error when tried to get the canvas data using 
toDataURL.
   
   I see error message "_SecurityError: The operation is insecure._" on call to 
toDataURL in console.
   
   I know wkwebview is having issues( or strict) with CORS but as per document 
(https://cordova.apache.org/docs/en/latest/guide/appdev/whitelist/) this issue 
should not occur even for Canvas with _access origin='*'_ setting and custom 
scheme file loading, when its working fine for other elements.
   
   **Note:** toDataURL works fine when Image element being drawn is set with 
base64 data instead of url with custom scheme
   
   **Environment:**
   iPad pro with iOS 12.1.3
   cordova-plugin-wkwebview-engine : 1.1.4
   
   Is this a bug in the cordova-plugin-wkwebview-engine?

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on 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]

Reply via email to