I am invoking the service with authorization header, but I am getting the http status code 401 unauthorized access, interesting thing is that if i try this with chrome or postman I am getting exactly result , that means there is no issue on server side ,then what I am missing in client side so that it is failing on options method?
Here is my code for that :-
this.http.get(url,{headers:this.headers}).subscribe(res=>{
console.log(res);
});