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
You have to add in the manifest.json the permissions for your domain(s).
manifest.json
"permissions": [ "http://example.com/*", "https://example.com/*" ]