You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm using html2canvas on Domain A, and I've set the useCORS: true option to enable cross-origin image loading. However, when the script tries to load an image hosted on Domain B, I encounter the following error:
Access to image at <Domain B> from origin <Domain A> has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.
In the Network tab, I can see that the response from Domain B does not include the Access-Control-Allow-Origin header. Since the image request is made internally by html2canvas, I assumed that setting useCORS: true would handle this.