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
For python flask server, you can use the flask-cors plugin to enable cross domain requests.
See : https://flask-cors.readthedocs.io/en/latest/