Answers for "Uncaught DOMException: Failed to execute 'getImageData' on 'CanvasRenderingContext2D': The canvas has been tainted by cross-origin data."

0

Uncaught DOMException: Failed to execute 'getImageData' on 'CanvasRenderingContext2D': The canvas has been tainted by cross-origin data.

// Add below code just after creating the image object
img.crossOrigin = "Anonymous";
Posted by: Guest on September-06-2021

Code answers related to "Uncaught DOMException: Failed to execute 'getImageData' on 'CanvasRenderingContext2D': The canvas has been tainted by cross-origin data."

Code answers related to "Javascript"

Browse Popular Code Answers by Language