kangax/fabric.js — Issue #102: SVG as overlayImage: Security error
Author: Kingsquare
Created: 2012-01-10 17:18:20+00:00
State: open

When constructing a new fabric.Canvas using

var fabricCanvas = new fabric.Canvas('canvas', {
'overlayImage': '/path/to/some/local/Image.svg'
});

the script works fine, but it is no longer possible to use

fabricCanvas.toDataURL('png')

This throws a Security Error in both Chrome and Firefox.

Adding the SVG using loadSVGFromURL() does seem to work around this problem.