开发者

How to fix warning MIME type text/html

How to fix Resource interpreted as Script but transferred with MIME type开发者_StackOverflow社区 text/html. What can cause it and how to fix ?


I assume you're looking at the Chrome console. The message means that you're loading a .js file, but the server is saying that the file is a HTML file.

You could configure the server to send JavaScript files as text/javascript, but you can also safely ignore the message. I'm pretty sure any browser will accept the script even as text/html.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜