title: "Access-Control-Allow-Origin" error on VSCode Debug Console but 200OK code at network tab at Chrome DevTools
body: <p>On an Angular 7 project, using HttpClient, I have this simple line of code on a click button handler:</p>
  <pre class="lang-js prettyprint-override"><code>    this.http
        .get('http://localhost:30123/api/identity/name/' + this.name)
        .subscribe((answer: Identity[]) =&gt; {
          this.identities = answer;  // debug does not get here...
        });
  </code></pre>
  <p>that's throwing this error at the Console Debug tab on VSCode:</p>
  <pre><code>Access to XMLHttpRequest at 'https://dihgldata.ingeniusds.cat/api/identitat/nom/montilla' from origin 'http://localhost:4200' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.
  [http://localhost:4200/] core.js:15724 {headers: HttpHeaders, status: 0, statusText: &quot;Unknown Error&quot;, url: &quot;https://dihgldata.cat/api/identitat/nom…&quot;, ok: false, …}
  </code></pre>
  <p>but...</p>
  <p>I'm using three different tools to test the same URL and getting a correct response from the api.</p>
  <p><strong>First: Postman.</strong></p>
  <p>(Well, you know: headers, CONTENT-TYPE,... are diferent when sent
  from this utility than from chrome)</p>
  <p><strong>Second: VS Code Extension Rest Client.</strong></p>
  <p>(As per Postman, these utilities are useful to test the API but doesn't help with errors at the client side code)</p>
  <p><strong>Third: Chrome DevTools.</strong></p>
  <p>Here is my big deal. I went to Network tab on Chrome DevTools and I can see the response of the API just before it's been treated by my code and there is the full response with a OK-200 Status.</p>
  <p>No errors at Console tab on Chrome DevTools.</p>
  <p>Using VS Code integrated debugger with Chrome Extension tracing never gets to the line where the answer is assigned to the local variable and the error is shown in VSCode Debug Console with no other clue.</p>
  <p><strong>EDIT</strong></p>
  <p>Tried the same URL as on Angular HttpClient on Chrome address bar and the response from the same API is shown correctly.</p>