When developing an Angluar application, I needed to make requests to remove servers, and encountered the "Access-Control-Allow-Origin" problem. To overcome this, I decided to proxy the remote server using nginx.
Since a remote server was a nodejitsu drone, I needed to modify my nginx configuration a little further than normal:
Note the proxy_set_header Host line. This is needed because nodejitsu proxies their drones according to the Host header (
docs).