Security Error with canvas.toDataURL() and drawImage()

后端 未结 3 801
[愿得一人]
[愿得一人] 2020-12-11 05:59


3条回答
  •  长情又很酷
    2020-12-11 07:03

    Ya thats a feature. As the image is on another server. Check this

    Why does canvas.toDataURL() throw a security exception?

    You can catch these exceptions. But this will be headache to do for other browsers too and also not right for security.

    So better solution is download that image on local.And give the image src path to that.

提交回复
热议问题