This content originally appeared on DEV Community and was authored by chuongmep
This is simple way to fix :
- Find type format relate to the issue from console in web browser
- Add the code from python server, in my case I'm not able to load .mjs from source :
import mimetypes
mimetypes.add_type('text/javascript', '.mjs')
This content originally appeared on DEV Community and was authored by chuongmep
Print
Share
Comment
Cite
Upload
Translate
Updates
There are no updates yet.
Click the Upload button above to add an update.
APA
MLA
chuongmep | Sciencx (2025-11-12T03:21:02+00:00) Fix Loading module from … was blocked because of a disallowed MIME type. Retrieved from https://www.scien.cx/2025/11/12/fix-loading-module-from-was-blocked-because-of-a-disallowed-mime-type/
" » Fix Loading module from … was blocked because of a disallowed MIME type." chuongmep | Sciencx - Wednesday November 12, 2025, https://www.scien.cx/2025/11/12/fix-loading-module-from-was-blocked-because-of-a-disallowed-mime-type/
HARVARDchuongmep | Sciencx Wednesday November 12, 2025 » Fix Loading module from … was blocked because of a disallowed MIME type., viewed ,<https://www.scien.cx/2025/11/12/fix-loading-module-from-was-blocked-because-of-a-disallowed-mime-type/>
VANCOUVERchuongmep | Sciencx - » Fix Loading module from … was blocked because of a disallowed MIME type. [Internet]. [Accessed ]. Available from: https://www.scien.cx/2025/11/12/fix-loading-module-from-was-blocked-because-of-a-disallowed-mime-type/
CHICAGO" » Fix Loading module from … was blocked because of a disallowed MIME type." chuongmep | Sciencx - Accessed . https://www.scien.cx/2025/11/12/fix-loading-module-from-was-blocked-because-of-a-disallowed-mime-type/
IEEE" » Fix Loading module from … was blocked because of a disallowed MIME type." chuongmep | Sciencx [Online]. Available: https://www.scien.cx/2025/11/12/fix-loading-module-from-was-blocked-because-of-a-disallowed-mime-type/. [Accessed: ]
rf:citation » Fix Loading module from … was blocked because of a disallowed MIME type | chuongmep | Sciencx | https://www.scien.cx/2025/11/12/fix-loading-module-from-was-blocked-because-of-a-disallowed-mime-type/ |
Please log in to upload a file.
There are no updates yet.
Click the Upload button above to add an update.
