Header Authentication in post Method in ionic 3...!


#1

var headers=new Headers({
‘username’: ‘name’,
‘password’: ‘*********’,
});

 headers.append('Content-Type', 'application/x-www-form-urlencoded');

/* headers.append(‘username’,‘name’);
headers.append(‘password’, ‘*’); /
//var headers:{ ‘username’: ‘name’; ‘password’:'
’};
let options = new RequestOptions({
headers:headers
});

Authorization Failed…?
How to pass header authentication in ionic 3…?