MIME type issue
-
Hi
How we can fix this issue
“Failed to load module script: Expected a JavaScript module script but the server responded with a MIME type of “application/octet-stream”. Strict MIME type checking is enforced for module scripts per HTML spec.”
The page I need help with: [log in to see the link]
-
Whoop already fix it. Adding a line in .htaccess
AddType application/javascript .mjs
Thanks!
Hi
My website is http://www.libreavis.eu.
I use a plugin (Pdf.js Embed) to display a pdf on a mobile. It worked for 6 months. For some time this reader has no longer loaded the PDF, ever. I haven’t made any changes. Even old backups no longer work. Can you help me ? I’m a self-taught person and I can’t find the solution.
THANKS .
Sincerely .
Best Regards
– response to previous message from Hostinger .
– I deleted the pdf viewer plugin and put it back.
– I deleted plugins
– I modified the htaccess as requested. see below
– I checked that PHP manages and works with PDFs.- All my PHP files predate the bug. 8 months ago - This plugin works with other hosts. - My blog is very small in size. - I have put the error messages found with Chrome devTools at the end. Nothing changes.htaccess
Hi
My website is http://www.libreavis.eu.
I use a plugin (Pdf.js Embed) to display a pdf on a mobile. It worked for 6 months. For some time this reader has no longer loaded the PDF, ever. I haven’t made any changes. Even old backups no longer work. Can you help me ? I’m a self-taught person and I can’t find the solution.
THANKS .
Sincerely .
Best Regards
– response to previous message from Hostinger .
– I deleted the pdf viewer plugin and put it back.
– I deleted plugins
– I modified the htaccess as requested. see below
– I checked that PHP manages and works with PDFs.- All my PHP files predate the bug. 8 months ago - This plugin works with other hosts. - My blog is very small in size. - I have put the error messages found with Chrome devTools at the end. Nothing changes.htaccess BEGIN LSCACHE END LSCACHE BEGIN NON_LSCACHE END NON_LSCACHE
AddType application/javascript .mjs
BEGIN WordPress Les directives (lignes) entre « BEGIN WordPress » et « END WordPress » sont générées dynamiquement, et doivent être modifiées uniquement via les filtres WordPress. Toute modification des directives situées entre ces marqueurs sera surchargée.
RewriteEngine On RewriteRule .* – [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}] RewriteBase / RewriteRule ^index.php$ – [L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /index.php [L] END WordPress
message d’erreur sur page devTools google
Failed to load module script: Expected a JavaScript module script but the server responded with a MIME type of “text/plain”. Strict MIME type checking is enforced for module scripts per HTML spec.
&style=style8&show=p&num=5&uid=ug:1 Failed to load resource: the server responded with a status of 500 ()
viewer.mjs:1 Failed to load module script: Expected a JavaScript module script but the server responded with a MIME type of “text/plain”. Strict MIME type checking is enforced for module scripts per HTML spec.
pdf.mjs:1 Failed to load module script: Expected a JavaScript module script but the server responded with a MIME type of “text/plain”. Strict MIME type checking is enforced for module scripts per HTML spec.
pdf.mjs:1 Failed to load module script: Expected a JavaScript module script but the server responded with a MIME type of “text/plain”. Strict MIME type checking is enforced for module scripts per HTML spec.
pdf.mjs:1 Failed to load module script: Expected a JavaScript module script but the server responded with a MIME type of “text/plain”. Strict MIME type checking is enforced for module scripts per HTML spec.
viewer.mjs:1 Failed to load module script: Expected a JavaScript module script but the server responded with a MIME type of “text/plain”. Strict MIME type checking is enforced for module scripts per HTML spec.
viewer.mjs:1 Failed to load module script: Expected a JavaScript module script but the server responded with a MIME type of “text/plain”. Strict MIME type checking is enforced for module scripts per HTML spec.
viewer.mjs:1 Failed to load module script: Expected a JavaScript module script but the server responded with a MIME type of “text/plain”. Strict MIME type checking is enforced for module scripts per HTML spec.
@ratajczyk See this support thread https://ww.wp.xz.cn/support/topic/⚠%EF%B8%8F-pdfjs-2-2-not-working/ or roll back your version https://ww.wp.xz.cn/support/topic/how-to-use-a-previous-version-of-a-plugin/
The topic ‘MIME type issue’ is closed to new replies.