error - image - Access to image at '' from origin 'null' has been blocked by CORS policy:

created at 09-06-2021 views: 2

Users canvas local picture cross-domain error reporting solution

1. Set up cross-domain

# Add cross-domain conditions 
# The premise is that the backend supports this image cross-domain
crossorigin="anonymous"

2. If after adding the above, it still reports an error

as shown in the title

You need to put your project on the server to run

Or build a local server by yourself

then visit your html

created at:09-06-2021
edited at: 09-06-2021: