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 @   zc-lee  阅读(796)  评论(0编辑  收藏  举报
点击右上角即可分享
微信分享提示