I'm getting this error using ngResource to call a REST API on Amazon Web Services: XMLHttpRequest cannot