error - img- Access to image at '' from origin 'null' has been blocked by CORS policy: Cross origin requests are only supported for protocol schemes

  • Access to image at 'file:///G:/web/lee/img/pic.jpg' from origin 'null' has been blocked by CORS policy: Cross origin requests are only supported for protocol schemes: http, data, chrome, chrome-extension, chrome-untrusted, https.
<img src="./img/pic.jpg" />
<img crossorigin="Anonymous" src="./img/pic.jpg" />  // 此处导致
<img referrer="no-referrer" src="./img/pic.jpg" />
posted @ 2021-09-02 10:48  zc-lee  阅读(765)  评论(0编辑  收藏  举报