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.
精彩评论