title: How to structure my webapp if it need to talk to another server?
body: <p>I have an Angular webApp. It is served by server #1. And most of its data is pulled from a webservice hosting on the same server (#1).</p>
  
  <p>Now I need to add a new feature which requires me to post to a rest-endpoint on a second server (#2). I have two options:</p>
  
  <ul>
  <li>let my front-end UI talk directly to server #2, which requires me to
  change cross-origin policy, OR     </li>
  <li>add a proxy endpoint on server #1, and let my webapp talk to server #1's proxy endpoint, which in turn talk to server #2's endpoint.</li>
  </ul>
  
  <p>Which way is a converntional way of doing this?</p>