@xyrintech pass Object with headers to [src] instead of just an URL string:
pdfObject = {
url: 'some url to PDF',
httpHeaders: { Authorization: 'Bearer XYZ' },
withCredentials: true,
}
and then in the view
<pdf-viewer [src]="pdfObject" ...