Did I not get enough sleep or what? This following code
var frame=document.getElementById(\"viewer\"); frame.width=100; frame.height=100; var ctx=frame.getC
Finally i found the solution. Just need add the crossOrigin as third param in fromURL func
crossOrigin
fromURL
fabric.Image.fromURL(imageUrl, function (image) { //your logic }, { crossOrigin: "Anonymous" });