Answers for "domexception: failed to execute 'getimagedata' on 'canvasrenderingcontext2d': the canvas has been tainted by cross-origin data."

1

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 "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