While building a JavaScript single page app that acts as a front-end to multiple backend servers, even if they are on the same host as the web app - but on different ports, you come across CORS issues.
Use a simple node.js + hapi.js server to:
- Serve your static single page app
- Act as proxy to the backend servers