Hi!
I have added a proxy setting in order to avoid the problem with CORS with the images on the DOM.
It works adding the option in the constructor, for example:
const blob = await domtoimage.toBlob(node, { width: node.offsetWidth, height: node.offsetHeight, proxy: 'http://myproxyurl' })
For Me, this was the best solution to solve the problem that I have with the load of cross-domain images.
Hope this helps everyone.
Hi! I have added a proxy setting in order to avoid the problem with CORS with the images on the DOM. It works adding the option in the constructor, for example:
const blob = await domtoimage.toBlob(node, { width: node.offsetWidth, height: node.offsetHeight, proxy: 'http://myproxyurl' })
For Me, this was the best solution to solve the problem that I have with the load of cross-domain images. Hope this helps everyone.