Add crossOrigin Anonymous in Konva.Image.fromURL to prevent tainted canvas

See: https://github.com/konvajs/konva/issues/382
This commit is contained in:
Ben Jackman 2018-04-16 23:33:00 -05:00 committed by GitHub
parent 7601be03fc
commit 38ca94e7fd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -239,6 +239,7 @@
});
callback(image);
};
img.crossOrigin = "Anonymous";
img.src = url;
};
})();