I am getting the following error while trying to retrieve the data URL from a canvas on which an SVG image is drawn on Internet Explorer and Safari browsers while the others are working properly.
In addition, the SVG image contains some <image>
elements whose xlink:href
attributes are set to images read from the user's file system as data URLs. Since these images are not located on different domains, i could not think of any reason why this error is thrown when trying to get the dataURL of the canvas on which the SVG image is drawn. Thanks in advance.
SECURITY_ERR: DOM Exception 18: An attempt was made to break through the security policy of the user agent."