Angular 2 Typescript: Get service not finding my RESTFUL API
<p>I am trying to do a get on my service and get a 404 error, it's definitly there and works as I have tested it using PostMan an API testing tool.</p>

<p>Here is my code:</p>

<pre><code>const headers = new Headers();

headers.append('Authorization','eyJ0eg'); 

return this.http.get('http://myserver:8090/lookup/nationalities', { headers: headers } )
.map((data: Response) =&gt; data.json())
.catch(this.handleError);
</code></pre>

<p>My error in Chrome dev tools:</p>

<pre><code>Response {_body: Object, status: 404, ok: false, statusText: "Not Found", headers: Headers…}
</code></pre>

<p>In Post Man I simply fill in the headers section with an Authorization key and add the value in then press send. All works fine. However in my code it does not.
Does anyone know what I am missing or what could be causing this issue?</p>