admin管理员组

文章数量:1620174

报错问题:Cross origin requests are only supported for protocol schemes: http, data, chrome, chrome-extension, https, chrome-extension-resource

原因:  浏览器为了安全性考虑,默认对跨域访问禁止

解决方法:

(一)Google Chrome应用程序目标位置中添加  chrome.exe --allow-file-access-from-files  

注意中间空格(chrome.exe  --allow-file-access-from-files)

注意!!!   必须重新启动电脑,否则无效......

(二)、 使用cmd命令 传入浏览器启动参数 --allow-file-access-from-files

(三)用启动浏览器打开html文件即可. 若还出现上述问题,重启电脑,继续步骤二

本文标签: 报错文件Googlechromehtml