I\'m getting this error using ngResource to call a REST API on Amazon Web Services:
XMLHttpRequest cannot load http://server.apiurl.com:8000/s/login
Something that is very easy to miss...
IN solution explorer, right-click api-project. In properties window set 'Anonymous Authentication' to Enabled !!!