I need to download a bookshelf where all the images come from Google Books. The library I am using is dom-to-image-more on version 2.9.5.
I created the fiddle below, with only 1 image, to show the problem I’m experiencing.
Here is an image of my DOM and just below the result, after clicking on Screenshot:
Access to XMLHttpRequest at 'https://books.google.com/books/content?id=rBdiDwAAQBAJ&printsec=frontcover&img=1&zoom=1&edge=curl&source=gbs_api' from origin 'http://localhost:8080' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.
I already tried Html2Canvas but the result is the same.
Does this have a solution?
How to add an ‘Access-Control-Allow-Origin’ header in the resource?