I'm trying to run a nodejs express webserver with a static frontend, I'm using myServer.use(express.static("public"));
to handle the GET requests made to /. the public folder contains html, js, css and some immage rescources. those all get loaded in but the browser blocks/doesn't load them because they aren't of the text/html MIME type. Is there any way I could resolve this?
Asked
Active
Viewed 18 times
0

ArneVC
- 5
- 2
-
Please provide enough code so others can better understand or reproduce the problem. – Community Oct 18 '22 at 21:09
1 Answers
0
found the answer here: https://stackoverflow.com/a/48666785 for people who found this post, and not the one with the answer.

ArneVC
- 5
- 2
-
you could add the short code snippet from the answer you linked. and just use the link as referrence so people can quickly use youre solution :) – Fiehra Oct 21 '22 at 09:27