Users canvas local picture cross-domain error reporting solution
1. Set cross-domain
Add cross-domain condition crossorigin="anonymous"
The prerequisite is that the backend supports this image cross-domain
2. After adding it, it still reports an error
As shown in the title
You need to put your project on the server
Or build a local server yourself
Then access your HTML
Similar Posts:
- error – canvas- Failed to execute ‘toBlob’ on ‘HTMLCanvasElement’: Tainted canvases may not be exported.
- python: _tkinter.TclError: couldn’t recognize data in image file
- [Chrome Error] Cross origin requests are only supported for protocol schemes: http, data,chrome-extension
- _tkinter.TclError: no display name and no $DISPLAY environment variable
- How to Solve .Net 5 webapi cross domain Issue
- Failed to execute ‘toDataURL’ on ‘HTMLCanvasElement’: Tainted canvases may not be exported [Solved]
- JQuery Ajax crossdomain cannot be used in IE [How to Solve]
- Solution to cross origin read blocking (CORB) blocked cross origin response error
- Uncaught Error: Bootstrap’s JavaScript requires jQuery at bootstrap.min.js:6