Cannot View pdf article but can dowload pdf article

Describe the issue or problem
I succesfully published an issue on my journal site. The problem now is that is that when i click on the pdf it will open in a new tab but i cannot view anything but if i click on download, it will download the article. I am using OJS version 3.5.0.3. attached is the screenshot

I updated to 3.5 today and ran into exactly the same issue.

I saw in my browsers console: Loading module from “https://ztp.jesuiten.org/plugins/generic/pdfJsViewer/pdf.js/build/pdf.mjs” was blocked because of a disallowed MIME type (“application/octet-stream”).

I found some mention about the issue on https://www.w3tutorials.net/blog/module-was-blocked-because-of-a-disallowed-mime-type-text-html/
I was able to get around it adjusting my webserver (nginx) defining the mimetype for mjs (apparently it is not defined in the stock nginx docker image).
for nginx it was this snippet:

	types {
		text/javascript js;  
		application/javascript mjs; 
	}

I still can’t find a solution to this issue

Can anybody help me out with solution to the above please?

Hi all,

This is a web server configuration issue, not an OJS issue. See e.g. this thread for details on how to fix it.

Regards,
Alec Smecher
Public Knowledge Project Team