Error: Failed to execute 'send' on 'XMLHttpRequest': Failed to load 'file' : AngularJS SPA

烈酒焚心 提交于 2019-11-28 00:04:24
Mohit Singh

On Windows:

chrome.exe --allow-file-access-from-files

or

chrome.exe --allow-file-access-from-files --disable-web-security

On Mac:

open /Applications/Google\ Chrome.app/ --args --allow-file-access-from-files

i faced something Like that and resolved by using application server like Glassfish ...

in other words using http:// protocol instead of file://

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!