Different ports for frontend and backend. How to make a request?
<p>Using Angular-CLI as a frontend. 4200 port</p>

<p>Using Express as a backend. 8080 port</p>

<p>Directories look like:</p>

<pre><code>Application
 - backend
   - ...Express architecture
 - frontend
   -...Angular2 architecture
</code></pre>

<p>So I'm running two projects, two commanders, one for frontent, second one for backend. <code>node app.js</code> for backend (8080), <code>ng serve</code> for frontent (4200).</p>

<p>Let's assume that I have a layer in backend which returns some string.</p>

<pre><code>app.get('/hello', function(req, res) {
  res.send("Hello!");
}
</code></pre>

<p>How can I make a request from frontend to backend and get that string? I don't want to know how exactly should I use Angular2 because that's not the point. I'm asking, what technology should I use to be able connect these two (frontent and backend) sides on different ports. If I just run them and make a request from frontend, I'll get an error because it can't find <code>/hello</code> url.</p>