title: Subscription to a post request is not working in Angular
body: <p>I have following section of code in my Angular application which makes a call to a Spring REST Service running on port 8080. The issue with the code is that the Subscription to this POST request is not working:</p>
  
  <pre><code>this.http.post&lt;{'username': string,'score': number}&gt;('http://localhost:8080/setScore',{
          'username': username,
          'score': score
      },{
         headers: new HttpHeaders().append('Authorization',authToken)
      }).subscribe(data =&gt; {
          console.log('DATA');
      }, error =&gt; {
          console.log('ERROR');
      });
  </code></pre>
  
  <p>It is not logging DATA or ERROR in console.</p>