microsoft-edgemime-typesvod

When can text/html be an "unsupported MIME type"?


tl;dr Does anyone recalls any scenario or situation in which Microsoft Edge under Windows 11 claims that text/html is "unsupported MIME type"?


I am trying to play Polish VOD television in the following gear:

This works like a charm in Chrome and Firefox (though you need to have a paid account and authenticate yourself). but in Edge this is not possible (I'm ending up with never-ending loader). This is most likely due to the fact that site has some really weird problems and errors.

Probably the same cause is causing that even though I have notifications enabled for this site:

enter image description here

Edge blocks them:

enter image description here

This site is owned by a company, who has 10 million customers, so I completely don't believe in that warnings. Neither those shown as a popup nor those displayed in the console (especially given the fact that error in console points to a non-existing website!).

What matters me the most is that when click Allow nothing changes (i.e. VOD is still not being played, never-ending loader is still circling) and when I look again into console, I see this:

enter image description here

The script has an unsupported MIME type ('text/html').

Esquisse moi, but what is going on here? How can text/html be an "unsupported MIME type"?


Solution

  • Read the error message in full (emphasis mine):

    The script has an unsupported MIME type ('text/html')

    Note how it says "the script", i.e. there's a <script src="something.js"> where something.js is being served as text/html instead of text/javascript - this suggests it's a dynamically generated script and the server-code is showing a user-readable HTML error response instead (but is incorrectly serving it with a HTTP 200 OK status instead of 4xx or 5xx code).

    Note, of course, that other languages besides JavaScript/ECMAScript can be used in web-pages (historically, that includes VBScript and Tcl), but Chrome (and the current HTML specification) only supports JavaScript/ECMAScript.