How to make Html2Canvas work with external images?

I’ve been trying to use Html2Canvas to export some book images, but I’m getting the following error:

Access to image at ''
from origin 'http://localhost:8080' has been blocked by CORS policy:
No 'Access-Control-Allow-Origin' header is present on the requested resource.

I get such an error for every image. Here’s a mock of what I’m doing:

download () {
  window.html2canvas(this.$refs['capture'], {
    allowTaint: true,
    proxy: "",
    useCORS: true,
    .then(canvas => document.body.appendChild(canvas))
    .catch(err => console.error("Error:", err));

I also made a JSFidle with everything working (except the image of course).

I also read in the documentation that to make it work it would be necessary to implement html2canvas-proxy-nodejs, but I have no idea how to do that in Vue.

Has anyone gone through this problem?