How can i solve a crossOrigin issue in Sololearn? | Sololearn: Learn to code for FREE!
Neuer Kurs! Jeder Programmierer sollte generative KI lernen!
Kostenlose Lektion ausprobieren
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 Antwort
0
The code i posted was not public ­čś▓­čśó Sorry! Fixed now ­čśÇ
22nd May 2019, 10:58 PM
Walter Perdan
Walter Perdan - avatar