Licence validation error

Which product are you using?
PDF.js Express Viewer

PDF.js Express Version
8.7.5

Detailed description of issue
My app is in dotNet 9 (Blazor) and I’m using the stadalone library installed manually with PDFJSExpress-view-only.zip
Can’t validate licence key, because in (https://auth.pdfjs.express/?key=) request header Origin is not set.
Same also when running in local environment is not picking as localhost.

Hi there,

Thank you for contacting PDFJS Forums.

To add your license key, please make sure it is referenced in the constructor. More information can be found here: PDF.js Express Viewer Download & Integration | Documentation

Our Blazor guide can also be found here which explains how to integrate the standalone PDFJS library: Integrate JavaScript PDF Library & Blazor | PDF.js Express SDK

best regards,
Kevin

Thanks for the reply.
It was my fault I guess. I was using my browser with disabled security (no-cors) and so the Origin header was not setting…