When you call the web api, you have to pass
{ withCredentials: true}
. So that popup will come for credential
get(commandID, moduleID, data) {
const actionURL = AppUrlConfig.getUrl(commandID);
return this.http.get(environment.baseApi + actionURL.url,
{ withCredentials: true})
.pipe(catchError((error: Response) =>{
this.router.navigate(['/errorpage']);
return throwError(error);
}));
}