How to pass API token in header in Webviewer

Which product are you using?
PDF.js Express Plus

PDF.js Express Version
8.7.0

Detailed description of issue
How to pass API token in header using webviewer

Expected behaviour
{Provide a screenshot or description of the expected behaviour}

Does your issue happen with every document, or just one?
API token need to pass in header

Link to document
{Provide a link to the document in question if possible}

Code snippet
Sample code to render PDF:

WebViewer({
path:this.globals.downloadURL+‘/c/dam/r/ctp/site_assets/wv-resources/lib’,
licenseKey: ‘xxxxxxx’,
initialDoc: URL,
disabledElements: [
‘panToolButton’,
‘selectToolButton’,
‘toggleNotesButton’,
‘miscToolGroupButton’,
‘stickyToolButton’,
‘freeTextToolButton’,
‘eraserToolButton’,
‘shapeToolGroupButton’,
‘textToolGroupButton’,
‘freeHandToolGroupButton’
],
disableFeatures: [
‘Copy’
]
}, this.viewer.nativeElement).then(instance => {
//document
})

Hi there,

Thank you for contacting pdf.js express forums,

Please follow this guide on setting headers:

Best regards,
Kevin Kim