You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fiber version
v2.26.0 Windows version
Windows 10 21H2(19044.1526)
Issue description
Failed to load module script: Expected a JavaScript module script but the server responded with a MIME type of "text/plain". Strict MIME type checking is enforced for module scripts per HTML spec.
Thanks for opening your first issue here! 🎉 Be sure to follow the issue template! If you need help or want to chat with us, join us on Discord https://gofiber.io/discord
34205037
changed the title
Expected a JavaScript module script but the server responded with a MIME type of "text/plain"🐛
🐛Expected a JavaScript module script but the server responded with a MIME type of "text/plain"
Feb 10, 2022
Fiber version
v2.26.0
Windows version
Windows 10 21H2(19044.1526)
Issue description
Failed to load module script: Expected a JavaScript module script but the server responded with a MIME type of "text/plain". Strict MIME type checking is enforced for module scripts per HTML spec.
mime: incorrect mime-type for .js files on windows 10 (text/plain instead of application/javascript) #32350
The requirement of the mime package should be to correctly ascertain the mime type of common files, regardless of Windows registry settings.
The terrible thing is that two years later, this problem still exists.
app.Static serving JS as text/plain #352
We should not ask users to modify the registry.
For a novice in golang , how should I fix it?
sorry,my english is not good.
The text was updated successfully, but these errors were encountered: