"Loading module was blocked because of a disallowed MIME type (“text/html”)"

URL of experiment: https://run.pavlovia.org/jenkim9/cyberbinding/html/

Description of the problem:
When running my Builder experiment online, I see only a blank screen. Using F12, the console window gives 5 error messages, all saying “Loading module from … [location] … was blocked because of a disallowed MIME type (“text/html”)”. The locations are all "/html/lib/*-2020.js. In my html folder, there is no /lib/ directory, which might be causing the error. Below is an image of the errors I receive.

The experiment runs totally fine locally. It is fairly complex, with things like nested loops, uses .png image files and .wav audio files, and uses code components to do plenty of stuff including selecting which file to use. I’ve made sure that all files are referenced using a relative path (e.g., “Field.png”, without the full filepath).

I have played around with this for several hours now, and I can’t figure out how to solve the issue. Any help is greatly appreciated! I’m happy to provide more info if needed.



Try disabling your Ad Blocker…!

Two more suggestions:

  • Export to the most recent version of PsychoPy (2021.1.2)
  • Leave “output path” empty in Experiment Settings → Online

We had the same issue with “disallowed MIME type” and setting the ‘Use PsychoPy version’ to 2021.1.2 (as suggested by Thomas) solved it. Thank you!

1 Like