I am trying to use an api which requires an API key ‘Auth’, I am trying to send the key using httpHeaders using below code
getTest(){
let data = {'loginusertype':'12','loginuserid':'51','apitype':'1','start':'0','end':'20'};
let headers = new HttpHeaders({'Content-Type':'application/json; charset=utf-8','Auth':'593eb2c274d640a8798493bf340e08b6'});
this.http.post('http://www.mymediaxchange.com/api/serviceapi/v1/currentworks',data,{headers:headers})
.subscribe(
(data) => console.log(data),
(error) => console.log(error)
) }
But I am not able to set headers the headers are set as below