WEB-786: Fix 401 HTTP error (#3222)

This commit is contained in:
EmanuelCR03
2026-02-24 00:50:52 -06:00
committed by GitHub
parent 2d82b59ce2
commit 8d5df77010
4 changed files with 18 additions and 9 deletions
+5 -1
View File
@@ -47,7 +47,11 @@ export class RemittancesService {
}
private getHeaders(): HttpHeaders {
return new HttpHeaders({ 'Content-Type': 'application/json' });
let headers = new HttpHeaders({ 'Content-Type': 'application/json' });
const apiHeader = environment.mifosRemittanceApiHeader;
const apiKey = environment.mifosRemittanceApiKey;
headers = headers.set(apiHeader, apiKey);
return headers;
}
/**