canvas has been tainted by cross-origin data work around

后端 未结 5 649
北荒
北荒 2020-12-05 16:48

im writing a script (or editing and hacking things together) to edit the look of images on a page. I know the basics of javascript but this is my first time looking at canva

5条回答
  •  清歌不尽
    2020-12-05 17:15

    I don't have enough reputation to actually add a comment (but I do have enough to respond to the question, huh??), I just wanted to add to markE's answer that I had to capitalize Anonymous.

    image.crossOrigin = "Anonymous"
    

提交回复
热议问题