PDF.js error after update to 18.0.4

No longer able to read PDF online:

An error occurred while loading the PDF.
PDF.js v2.1.266 (build: 81f5835c)
Message: Setting up fake worker failed: “Cannot load script at: https://nextcloud.mysite.xx/index.php/apps/build/pdf.worker.js”.

Sorry, false alarm.
I tested the PDF view function in other browsers where it did work.(firefox, chrome)
So a cache reset on the affected Vivaldi-browser solved the problem.

1 Like

I am not sure it is a false alarm, I can’t get this to work even clearing my browsers cache. It is broken on the New Edge, Chrome and Firefox for me. Firefox console is showing:
The resource from “https://nextcloud.dweimer.net/index.php/apps/files/” was blocked due to MIME type (“text/html”) mismatch (X-Content-Type-Options: nosniff).files_pdfviewer

It appears the Java Script File is being tagged as text/html instead of text/javascript