I am trying to send http get request along with headers as below
var headers = {}
headers['x-email'] = 1;
headers['x-from'] = 1577836800;
headers['x-to'] = 1598659200;
return this.http.get<any>(environment.apiUrl+'/User/getTrips',{headers: new HttpHeaders(headers)})
.subscribe(data => {
if (data == undefined) {
this.rowData = [];
this.errorMsg = data['Error'];
} else {
this.rowData = data.slice(1);
this.gridOptions.rowData = data;
this.gridOptions.api.refreshCells({force : true});
}
When i see in network console, i could not see any headers in the request and hence am getting empty api response.