Rendering problems of canvas

recently, when writing a project, canvas; using h5 has no problem opening it in the editor with a browser, but when it is opened in a folder, the dynamic effect of canvas disappears; check the browser"s: Image from origin "file://" has been blocked from loading by Cross-Origin Resource Sharing policy: Invalid response. Origin "null" is therefore not allowed access. The image from the source file: / / "has been blocked by the cross-source resource sharing policy: invalid response. Therefore, access to "null" is not allowed. Do not understand what is the problem that caused the resource sharing strategy to be blocked? Ask for advice

Mar.19,2021
Menu