Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The canvas has been tainted by cross-origin data. #118

Open
Emad-AiDev opened this issue Nov 24, 2019 · 7 comments
Open

The canvas has been tainted by cross-origin data. #118

Emad-AiDev opened this issue Nov 24, 2019 · 7 comments

Comments

@Emad-AiDev
Copy link

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.

@ShinichiroMike
Copy link

Same here

@enoversum
Copy link

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

@phanmn
Copy link

phanmn commented May 24, 2021

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

@enoversum
Copy link

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.

@phanmn
Copy link

phanmn commented May 24, 2021

@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

@enoversum
Copy link

@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.

@iamrobert
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants