From 5928aaa4129aab908250df21c4be7db93630b801 Mon Sep 17 00:00:00 2001 From: linxiuyun Date: Tue, 19 Jan 2021 14:53:28 +0800 Subject: [PATCH] =?UTF-8?q?[BGF]=E4=BF=AE=E5=A4=8D=E4=BA=8C=E7=BB=B4?= =?UTF-8?q?=E7=A0=81=E4=B8=AD=E9=97=B4=E7=9A=84=E5=9B=BE=E7=89=87=E8=B7=A8?= =?UTF-8?q?=E5=9F=9F=E5=AF=BC=E8=87=B4canvas.toDataURL=E6=8A=A5=E9=94=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/index.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/index.js b/src/index.js index c2ef794..2e207c9 100644 --- a/src/index.js +++ b/src/index.js @@ -133,6 +133,7 @@ extend(qrcode.prototype,{ // preload img var loadImage = function(url,callback){ var img = new Image(); + img.crossOrigin = 'Anonymous'; img.src = url; img.onload = function () { callback(this);