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

前端 未结 2 1022
臣服心动
臣服心动 2020-12-06 07:09

I\'m very new to Angular SPA and for the first time I get a code by Googling and try to run. But I get some errors in Console. I couldn\'t figure out why, I found list of fo

相关标签:
2条回答
  • 2020-12-06 07:47

    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
    
    0 讨论(0)
  • 2020-12-06 07:51

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

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

    0 讨论(0)
提交回复
热议问题