【发布时间】:2021-04-07 14:19:17
【问题描述】:
我正在开发一个在 django 提供的本地服务器上运行的 Web 应用程序。第一个页面 index.html 有许多 CSS 和 javascript 文件。但是,它们都没有在浏览器上正确呈现。所有 css/js 文件 都显示相同的 MIME 类型 (“text/html”) 不匹配 (X-Content-Type-Options: nosniff) 错误。 firefox 控制台短暂显示错误 -
来自“http://localhost:8000/C:/Users/PYTHON/foodie/static/plugins/scrollTo/jquery.scrollTo.min.js”的资源是blocked due to MIME type (“text/html”) mismatch (X-Content-Type-Options: nosniff)。
【问题讨论】:
标签: javascript html python-3.x django