title: Cant invoke toDataURL in fabricjs even when crossOrigin="anonymous"
body: <p>When clicking on same you will get an exception: <code>(index):72 Uncaught DOMException: Failed to execute 'toDataURL' on 'HTMLCanvasElement': Tainted canvases may not be exported.</code></p>
  
  <p><a href="http://jsfiddle.net/mx9pggs7/" rel="nofollow noreferrer">http://jsfiddle.net/mx9pggs7/</a></p>
  
  <pre><code>var canvas = new fabric.Canvas('c');
  var url = "https://ae01.alicdn.com/kf/HTB1wM8QLpXXXXcgXVXXq6xXFXXXB/223239535/HTB1wM8QLpXXXXcgXVXXq6xXFXXXB.jpg?size=172993&amp;height=1082&amp;width=790&amp;hash=62c4f508fb7a71cf577223a35c25f896";
  
  
  fabric.Image.fromURL(url, function(oImg) {
    oImg.set({
      'left': 0
    });
    oImg.crossOrigin = 'anonymous';
    oImg.set({
      'top': 0
    });
  
    canvas.add(oImg);
  });
  
  
  
  document.getElementById('save').addEventListener('click', function() {
    document.getElementById('output').innerHTML = '&lt;img crossOrigin="anonymous" src="' + canvas.toDataURL('image/png') + '" /&gt;';
  });
  </code></pre>