IE throws Security Error when calling toDataUrl on canvas

前端 未结 2 1253
孤独总比滥情好
孤独总比滥情好 2020-12-06 09:04

first of all, I know that accessing toDataURL method of canvas when its source image is from another origin is a security issue.

but in my case, I am u

2条回答
  •  执笔经年
    2020-12-06 09:52

    In my case, I changed the graphic elements that make up the image from svg to png. When using svg, I am seeing a security error in IE 11 (and 10), not Chrome, when I use toDataURL. Building the graphic using png elements, it's fine.

    There is a 2nd problem with svgs not resizing properly in IE 11, so that's another strike against using svgs with IE.

提交回复
热议问题