background-check icon indicating copy to clipboard operation
background-check copied to clipboard

The canvas has been tainted by cross-origin data.

Open Emad-AiDev opened this issue 5 years ago • 7 comments

Hello,

Could you please check the error ? Is that something possible to resolve. I use CDN and I guess that would be the issue.

background-check.min.js?ver=5.3:5 Uncaught DOMException: Failed to execute 'getImageData' on 'CanvasRenderingContext2D': The canvas has been tainted by cross-origin data.

Emad-AiDev avatar Nov 24 '19 22:11 Emad-AiDev

Same here

ShinichiroMike avatar Nov 10 '20 23:11 ShinichiroMike

Would love to know as well, also using a CDN here.

enoversum avatar May 20 '21 12:05 enoversum

I add the list[e].img.crossOrigin = 'anonymous'; to solve this issue image

phanmn avatar May 24 '21 10:05 phanmn

I add the list[e].img.crossOrigin = 'anonymous'; to solve this issue image

Just wondering why you have a different row number where your code goes (mine is 165 on script version 1.2.2), but unfortunately, it doesn't seem to work. Still reporting the same ol' error.

enoversum avatar May 24 '21 11:05 enoversum

@enoversum I formatted code for my typescript project. My image url has access-control-allow-origin: * this line at response header and my image is a css background url

phanmn avatar May 24 '21 11:05 phanmn

@enoversum I formatted code for my typescript project. My image url has access-control-allow-origin: * this line at response header and my image is a css background url

Ah, alright, so different scenario from just including the script in a page, pointing at CDN images.

enoversum avatar May 24 '21 12:05 enoversum

I noticed that when I lazyloaded the background-check js file I got this error. So when I initiated it on every page it disappeared.

iamrobert avatar Aug 25 '21 16:08 iamrobert