且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

Chrome 显示“资源被解释为脚本,但使用 MIME 类型 text/plain 传输",这是什么意思?

更新时间:2021-12-27 04:03:08

表示服务器正在发送一个 Javascript HTTP 响应

It means that the server is sending a Javascript HTTP response with

Content-Type: text/plain

您需要配置服务器以使用

You need to configure the server to send a JavaScript response with

Content-Type: application/javascript