• Please be aware: Kaspersky Anti-Virus has been deprecated
    With the upgrade to Plesk Obsidian 18.0.64, "Kaspersky Anti-Virus for Servers" will be automatically removed from the servers it is installed on. We recommend that you migrate to Sophos Anti-Virus for Servers.
  • The Horde webmail has been deprecated. Its complete removal is scheduled for April 2025. For details and recommended actions, see the Feature and Deprecation Plan.
  • We’re working on enhancing the Monitoring feature in Plesk, and we could really use your expertise! If you’re open to sharing your experiences with server and website monitoring or providing feedback, we’d love to have a one-hour online meeting with you.

Missing MIME-Type for extension .mjs

Azurel

Silver Pleskian
Username:

TITLE

Missing MIME-Type for extension .mjs

PRODUCT, VERSION, OPERATING SYSTEM, ARCHITECTURE

All

PROBLEM DESCRIPTION

Its not a bug, maybe more a feature-request to make Obsidian a little better.

Currently files with extension "mjs" create a error in console and are not working.

See JavaScript modules - JavaScript | MDN

STEPS TO REPRODUCE

Add in html-code existing file with < scr*pt type="module" src="file.mjs" >

ACTUAL RESULT

"Content-Type" missing in response header.

Console output:
Failed to load module script: Expected a JavaScript module script but the server responded with a MIME type of "". Strict MIME type checking is enforced for module scripts per HTML spec.

EXPECTED RESULT

No error

ANY ADDITIONAL INFORMATION

I get a error by submit this topic, so I try to add some spaces. Console said....
<h2 data-translate="blocked_why_headline">Why have I been blocked?</h2>

<p data-translate="blocked_why_detail">This website is using a security service to protect itself from online attacks. The action you just performed triggered the security solution. There are several actions that could trigger this block including submitting a certain word or phrase, a SQL command or malformed data.</p>

YOUR EXPECTATIONS FROM PLESK SERVICE TEAM

Confirm bug
 
Back
Top