Setting MIME type in http-server doesn't work
Solved
App Packaging & Development
-
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
-
-