报错内容
because its MIME type ('text/html') is not executable, and strict MIME type checking is enabled.
问题分析
静态文件被当成接口请求了,需要在middleware类中处理跳转问题,当包含static关键字时允许继续。(因为我的静态文件的路径就是以static开头的,如/static/js/admin.js)
如果还不行,则可能是文件不存在,复制静态文件所在的包,目录名改为static。

报错内容
because its MIME type ('text/html') is not executable, and strict MIME type checking is enabled.
问题分析
静态文件被当成接口请求了,需要在middleware类中处理跳转问题,当包含static关键字时允许继续。(因为我的静态文件的路径就是以static开头的,如/static/js/admin.js)
如果还不行,则可能是文件不存在,复制静态文件所在的包,目录名改为static。