mirror of
https://github.com/konvajs/konva.git
synced 2025-06-28 06:55:17 +08:00
Add crossOrigin Anonymous in Konva.Image.fromURL to prevent tainted canvas
See: https://github.com/konvajs/konva/issues/382
This commit is contained in:
parent
7601be03fc
commit
38ca94e7fd
@ -239,6 +239,7 @@
|
||||
});
|
||||
callback(image);
|
||||
};
|
||||
img.crossOrigin = "Anonymous";
|
||||
img.src = url;
|
||||
};
|
||||
})();
|
||||
|
Loading…
Reference in New Issue
Block a user