Closed dukeduck1984 closed 5 years ago
Does it have something to do with the internally supported Mimetypes? Is it possible to manually add other mimetypes? For example, those font files are ended with .woff or .woff2
I've solved the problem :) You can pull the git (last commit https://github.com/jczic/MicroWebSrv/commit/425e665035fbee601f686c22107ade3dda0c76c0)
Thank you so much!!
I was just about to say that I added 2 lines in _mimeTypes and now it's working. Wonderful! :-))
Hello,
I released a fully new version (v2.0) of my web server here : github.com/jczic/MicroWebSrv2. Open source MIT, fully asynchronous, more robust, more fast and more efficient! It is delivered with a good documentation.
Thank you for your support and feedback. ☺️
Jean-Christophe Bos
Le mar. 30 juil. 2019 à 17:39, Kaiyuan notifications@github.com a écrit :
Closed #61 https://github.com/jczic/MicroWebSrv/issues/61.
— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/jczic/MicroWebSrv/issues/61?email_source=notifications&email_token=AAD2ALBHGGKVIJJHHS6ESZDQCBOBVA5CNFSM4IH5PZWKYY3PNVWWK3TUL52HS4DFWZEXG43VMVCXMZLOORHG65DJMZUWGYLUNFXW5KTDN5WW2ZLOORPWSZGOSY4GGCQ#event-2520277770, or mute the thread https://github.com/notifications/unsubscribe-auth/AAD2ALBFD5L33K57NCH7HDLQCBOBVANCNFSM4IH5PZWA .
--
Sincèrement,
Hi,
I'm using the MicroWebSrv to serve both the back end (rest api) and the front end (made with vue.js). The back end worked fine, but there is some issues with the front end.
The web app packed by Vue.js has 4 folders along with index.html, they are: css, fonts, js, statics. Altough extremely slow when loading the page for the first time, most parts of the page have loaded correctly except for the icons which are fonts. So I took a look at the console, and found some errors, e.g.
GET http://192.168.123.108/fonts/flUhRq6tzZclQEJ-Vdg-IuiaDsNcIhQ8tQ.0509ab09.woff2 net::ERR_ABORTED 403 (Forbidden)
How can I solve this problem? Is there a way to mark this folder as static folder like in Flask?
Thanks, Kaiyuan