pdf inline with authorization

@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" ...

Schreiben Sie einen Kommentar

Ihre E-Mail-Adresse wird nicht veröffentlicht. Erforderliche Felder sind mit * markiert