How to make canvas toDataURL work on images on another server?

0

I have a facebook app where I get the user profile picture. How to paste this image over another making an assembly to be later shared in fb itself. The canvas toDataURL method does not work because the image is on another server. Do I need any plugins or anything?

    
asked by anonymous 15.05.2016 / 06:41

1 answer

0

I solved the problem. Just do:

img.crossOrigin = "Anonymous";
    
18.07.2016 / 06:26