浏览器报错XMLHtmlRequest cannot load file:///C.xxxxxxx .Cross origin resources are only supported for protocol schemes!
就是不能跨域访问。
解决办法:
关闭浏览器,在cmd到此浏览器exe的目录下,运行命令:
[浏览器exe文件名] --allow-file-access-from-files
再次打开浏览器,应该就好了。
浏览器报错XMLHtmlRequest cannot load file:///C.xxxxxxx .Cross origin resources are only supported for protocol schemes!
就是不能跨域访问。
解决办法:
关闭浏览器,在cmd到此浏览器exe的目录下,运行命令:
[浏览器exe文件名] --allow-file-access-from-files
再次打开浏览器,应该就好了。