Setting MIME type in http-server doesn't work
-
Hi there,
I am trying to package the Chatpad App for cloudron and have problems with the MIME Type of the .tsx Files.
Browser Log (Console):
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.The current source can be found in Github
I tried to handover the mime.types file to http-server in start.sh , but I still get the error above in the Browsers console.
Any idea why the correct mime type is not used?
Best,
Mike -
Ah, great hint! Thank you... working on it now
-
Problem solved after compiling the source

-
N nebulon marked this topic as a question on
-
N nebulon has marked this topic as solved on
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login