0
How can i solve a crossOrigin issue in Sololearn?
i m trying a simple code that manipulate an image and put the data into a canvas when is ready, but i get this error: Uncaught SecurityError: Failed to execute 'getImageData' on 'CanvasRenderingContext2D': The canvas has been tainted by cross-origin data. Line: 37 Does it possible to solve? i added the crossOrigin = "Anonymous"; attr but seems that have any effect. I also red this article: https://stackoverflow.com/questions/22097747/how-to-fix-getimagedata-error-the-canvas-has-been-tainted-by-cross-origin-data My code: https://code.sololearn.com/W3zR7H9XIVjH/#js
1 ответ
0
The code i posted was not public 😲😢 Sorry! Fixed now 😀