[Solved] Access to image at ” from origin ‘null’ has been blocked by CORS policy

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: