开发者

How to fix warning MIME type text/html

开发者 https://www.devze.com 2023-04-09 06:49 出处:网络
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 messa

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

精彩评论

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