How can i solve a crossOrigin issue in Sololearn? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
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

22nd May 2019, 12:40 PM
Walter Perdan
Walter Perdan - avatar
1 Answer
0
The code i posted was not public 😲😢 Sorry! Fixed now 😀
22nd May 2019, 10:58 PM
Walter Perdan
Walter Perdan - avatar