kciter / qart.js

Generate artistic QR code. 🎨
https://kciter.github.io/qart.js/
GNU General Public License v3.0
3.15k stars 176 forks source link

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

Open Kamez opened 5 years ago

Kamez commented 5 years ago

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

AllenZho commented 5 years ago

same here!

readyyyk commented 1 year ago

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";