License key not working

Hello,
When I run de program locally the license key is accepted: PDFJS.express: Development environment detected. This license key is currently registered to adhoc.ilvo
However when I run it on the server I get: PDFJS.express: A valid license key is required to use the view only build of PDF.js Express.
The url of the application is https://signit.adhoc.ilvo/ , it is an intranet application. And I downloaded the correct files: PDFJSExpress-view-only.zip.
I tried to use loadDocument or initialDoc, both work locally, but not on the server:
WebViewer({
path: ‘lib/pdfjsexpress’,
licenseKey: ‘@ViewBag.LicenseKey’,
initialDoc: ‘https://pdftron.s3.amazonaws.com/downloads/pl/webviewer-demo.pdf’,
}, document.getElementById(‘viewer’))
.then(instance => {
instance.setLayoutMode(instance.LayoutMode.Single);
const { documentViewer } = instance.Core;
//documentViewer.loadDocument(urlFile, { filename: ‘test.pdf’, extension: ‘pdf’ })
});
Thank you
Tania

Hello tania.vanderstraeten,

Thank you for reaching out! Do you see any errors in the console or network tab? There could be a message there showing why the key did not work.

Alternatively, please double check the value of: ‘@ViewBag.LicenseKey’,
to ensure its the correct value

Best regards,
Tyler

Hello Tyler,

Thank you for your reply.
The licenseKey in code is correct, it is the key for adhoc.ilvo.
The request https://auth.pdfjs.express/?key=CKiK… returns ok and the request https://pi.pdfjs.express/events also returns ok, but then I get the error A valid license key is required.
Does the domain name need to be registered? This is not the case with adhoc.ilvo.
Kind regards
Tania

Hello tania.vanderstraeten,

If adhoc.ilvo is not registered, how are you using the domain?
If the domain is not pointing to a server, and the license key is pointing to that domain, how would the license key be used?

Best regards,
Tyler