• Plesk Uservoice will be deprecated by October. Moving forward, all product feature requests and improvement suggestions will be managed through our new platform Plesk Productboard.
    To continue sharing your ideas and feedback, please visit features.plesk.com

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