title: unsupported media error 415 while trying to post
body: <p>Im trying to post my credntial for authenication but i get the unsupported media error:</p>
  <pre><code> login(credentials) { 
  console.log(credentials);
  return this.http.post('http://localhost:59628/api/auth/login',
   JSON.stringify(credentials)).pipe(
  map(response=&gt;{
  
    console.log(response);
  }))
   };
  </code></pre>
  <p>}</p>
  <p>i also tried to add the header :</p>
  <pre><code>const httpOptions = {
   headers: new HttpHeaders({'Content-Type': 'application/json'})
  }
  </code></pre>
  <p>but that does not work with pipe thought,any idea?</p>