Can't get all response headers from angular 2 with cors
<p>I have an Angular 2 (<code>2.1.2</code>) client, ASP.NET Core as a backend with CORS enabled. Normal APIs (GET, POST, DELETE, ...) is working fine, my problem is when I try to retrieve headers from the response; particularly <code>Content-Disposition</code>. Here is a screen shot when I try to get a file content using Ajax.</p>

<p><a href="https://i.stack.imgur.com/gYRuk.png" rel="noreferrer"><img src="https://i.stack.imgur.com/gYRuk.png" alt="OPTIONS request"></a></p>

<p><a href="https://i.stack.imgur.com/m9rxF.png" rel="noreferrer"><img src="https://i.stack.imgur.com/m9rxF.png" alt="GET request"></a></p>

<p>As you can see there is a header called <code>Content-Disposition</code> in the GET response headers, but it is missing when I try to retrieve it from the Angular <code>http</code> service.</p>

<blockquote>
  <p>A quick note, I am only using CORS in development.</p>
</blockquote>