axios请求访问本地的同级的json文件,错误信息Cross origin requests are only supported for protocol schemes
axios请求访问本地的同级的json文件,产生错误信息:Access to XMLHttpRequest a xxx from origin 'null' has been blocked by CORS具体错误信息如下:Cross origin requests are only supported for protocol schemes: http, data, chrome, chrom
·
axios请求访问本地的同级的json文件,产生错误信息:Access to XMLHttpRequest a xxx from origin 'null' has been blocked by CORS
具体错误信息如下:Cross origin requests are only supported for protocol schemes: http, data, chrome, chrome-extension, chrome-untrusted, https.
Access to XMLHttpRequest at 'D:/xxx/xxx/data.json' 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.
核实问题:Chrome 浏览器兼容性问题,适应性 特殊问题导致的。换一个火狐浏览器或其他浏览器尝试则没有问题。
更多推荐
已为社区贡献1条内容
所有评论(0)