• Resolved atsiruddin

    (@atsiruddin)


    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]

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter atsiruddin

    (@atsiruddin)

    Whoop already fix it. Adding a line in .htaccess

    AddType application/javascript .mjs

    Thanks!

    Hi
    My website is https://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 https://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.

    Plugin Author Thomas McMahon

    (@twistermc)

Viewing 3 replies - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.