[Bug]: Failed to load module script: Expected a JavaScript module script but the server responded with a MIME type of "application/octet-stream". Strict MIME type checking is enforced for module scripts per HTML spec. #614
kamaludin21
started this conversation in
General
Replies: 1 comment 1 reply
-
Which framework do you use? |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Platform
Windows
Operating system version
Windows 11 23H2
System architecture
Intel (x86)
Herd Version
1.0.1
PHP Version
8.3.4
Bug description
Error appear when work with javascript library that need MIME type of "application/octet-stream". i have found this issues at my server, it is nginx config problem. the error message appear is:
Failed to load module script: Expected a JavaScript module script but the server responded with a MIME type of "application/octet-stream". Strict MIME type checking is enforced for module scripts per HTML spec.
Steps to reproduce
error when try to load file pdf using library mozilla/pdf.js
Relevant log output
Beta Was this translation helpful? Give feedback.
All reactions