h5p / moodle-mod_hvp

H5P Plugin for Moodle
GNU General Public License v3.0
134 stars 171 forks source link

H5P JavaScripts and Css won't load, no Editor loading #335

Open gnuusers opened 4 years ago

gnuusers commented 4 years ago

Unfortunately the H5P-Plugin won't work at Firefox 75 and chromium 81.0.4044.122 because of a blocking issue. It seems, that beginning with version 75 of firefox, they block loading scripts that don't have the right MIME-Type. All js and css scripts of the h5p-plugin seem to be text/html, but should be something like application/js for example.

In the console firefox says for all js and css scripts: was blocked due to MIME type (“text/html”) mismatch (X-Content-Type-Options: nosniff).

Please fix that issue!

thomasmars commented 4 years ago

I'm not able to reproduce this. As far as I can see "Content-Type: application/javascript" is sent for all javascript. The error you're seeing could be caused by the server not finding the file, sending a 404 back, which indeed would have the MIME type ("text/html"), but this means that your server is not finding the files, so this is just a symptom of something else wrong with your backend. Has the server setup you're running now worked before or did this happen after some update ?