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

Failed to execute 'getImageData' on 'CanvasRenderingContext2D' #33

Open
Kamez opened this issue Nov 13, 2018 · 2 comments
Open

Failed to execute 'getImageData' on 'CanvasRenderingContext2D' #33

Kamez opened this issue Nov 13, 2018 · 2 comments

Comments

@Kamez
Copy link

Kamez commented Nov 13, 2018

Failed to execute 'getImageData' on 'CanvasRenderingContext2D': The canvas has been tainted by cross-origin data.

@AllenZho
Copy link

same here!

@readyyyk
Copy link
Contributor

Solved it with the next steps:

  1. Copy code from https://cdnjs.cloudflare.com/ajax/libs/qartjs/1.0.2/qart.js to local file
  2. Goto line 109 var coverImage = new Image();
  3. Insert the following line: coverImage.crossOrigin = "anonymous";

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

3 participants