Skip to content

windows下编译的网页打开会白屏 #186

Answered by xhofe
LoveBeforT asked this question in Q&A
Discussion options

You must be logged in to vote

https://stackoverflow.com/questions/54835510/getting-mime-type-text-plain-error-in-golang-while-serving-css
golang/go#32350

I am using a windows machine (windows 10 & windows server 2019) and I had the same issue on javascript files, I went into the registry \HKEY_CLASSES_ROOT.js > "Content Type" and i changed it from "text/plain" to "application/javascript" and i restart the PC and that fixed it

Replies: 5 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@xhofe
Comment options

xhofe Dec 3, 2021
Maintainer

Answer selected by xhofe
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
finished Already over
2 participants
Converted from issue

This discussion was converted from issue #184 on December 03, 2021 04:58.