• Introducing WebPros Cloud - a fully managed infrastructure platform purpose-built to simplify the deployment of WebPros products !  WebPros Cloud enables you to easily deliver WebPros solutions — without the complexity of managing the infrastructure.
    Join the pilot program today!
  • Support for BIND DNS has been removed from Plesk for Windows due to security and maintenance risks.
    If a Plesk for Windows server is still using BIND, the upgrade to Plesk Obsidian 18.0.70 will be unavailable until the administrator switches the DNS server to Microsoft DNS.

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