Uncaught DOMException: Failed to execute 'toDataURL'on 'HTMLCanvasElement': Tainted canvases may not be exported.
at Image.img.onload...
跨域
1
Access to Image at 'http://localhost:3001/canvas.jpg'from origin 'http://localhost:3000'has been blocked by CORS policy: No 'Access-Control-Allow-Origin'header is present on the requested resource. Origin 'http://localhost:3000'is therefore not allowed access.
设置了 crossOrigin=use-credentials
1
Access to Image at 'http://localhost:3002/canvas.jpg'from origin 'http://localhost:3000'has been blocked by CORS policy: The value of the 'Access-Control-Allow-Origin'header in the response must not be the wildcard '*'when the request's credentials mode is 'include'. Origin 'http://localhost:3000' is therefore not allowed access.