Skip to content

Commit 4a0e2e4

Browse files
committed
Update Canvas.js
Support Canvas Security Limit. http://www.w3.org/TR/cors/
1 parent 5688e2e commit 4a0e2e4

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/utils/Canvas.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,8 @@
2121
tracking.Canvas.loadImage = function(canvas, src, x, y, width, height, opt_callback) {
2222
var instance = this;
2323
var img = new window.Image();
24-
24+
//allow CORS images
25+
img.crossOrigin = "*";
2526
img.onload = function() {
2627
var context = canvas.getContext('2d');
2728
canvas.width = width;

0 commit comments

Comments
 (0)