Post Authentication error

Hi ,
I am having post auth Problem. I am passing Auth Key to post method still getting no authorisation.
Here is the sample code .

getUserDetails(val) {
var headers = new Headers();
headers.append(‘Accept’, ‘application/json’);
headers.append(‘Content-Type’, ‘application/json’);
headers.append(‘Authorization’, 'Bearer ’ + val);'', { headers: headers })
  .subscribe(data => {
    // if (data.ok == true) {

    // }

  }, error => {


I have used CORS policy.
It’s POST method.Postman its giving value but UI it’s failing.

Chrome’s Developer Tools has a Network tab that shows what’s going over the wire. Can you compare that with what you’re sending with Postman?

What is the error, are you running in Chrome debug mode to ensure you are not getting CORS errors?

In network , I can see auth key is not getting populated but in debugger i was checking headers key is there .
How to correct this problem.

I am running in secure chrome . Other similar API , I am not having problem except this.


Here is the network snap shot. If you can see in code I am passing auth key but in Calling netwrok it’s not showing.


Solved My error.
I just passed Body parameter and it worked .
Thanks for you help.