Cross origin requests are only supported for protocol schemes: http, data, chrome, chrome-extension, https
google-chrome, google-chrome-extension, javascript, xml
Solution
you must run your app in the server , use node js
1- Install NodeJS // Hint: If you're on a Mac, you want to install and use Homebrew for this
2- Open your favorite terminal emulator
2- Install http-server by running: `npm install http-server -g`
3- Start http-server by running: `http-server 'path/to/your/angular/root/directory' -o`
That last command — specifically, the -o flag — should open a browser window at: localhost:8080
OR// use cd to find your directory app and use this command : `http-server . -o`
"." mean your current directory
you can see : https://teamtreehouse.com/community/i-am-not-able-to-load-my-json-file
Problem
I'm facing this issue with chrome and IE. I have developed HTML player in that i used XML to load the data inside that player. all pages have been accessed through XML.it work fine when I use any server to load that data inside player.I use WAMP server now. But now I'm thinking about making it as an offline version and write it inside CD. but when I open my player.html file directly without having server, the XML data not going to load.it showing following error in the console. XMLHttpRequest cannot load file:///C:/wamp/www/TTT_BR/english.xml. Cross origin requests are only supported for protocol schemes: http, data, chrome, chrome-extension, https.