We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 1153a88 + 285e017 commit aeb079dCopy full SHA for aeb079d
src/SketchField.jsx
@@ -543,6 +543,7 @@ class SketchField extends PureComponent {
543
})
544
}
545
let img = new Image();
546
+ img.setAttribute('crossOrigin', 'anonymous');
547
img.onload = () => canvas.setBackgroundImage(new fabric.Image(img),
548
() => canvas.renderAll(), options);
549
img.src = dataUrl
0 commit comments