【问题标题】:Cannot load webUI correctly无法正确加载 webUI
【发布时间】:2020-09-21 04:28:37
【问题描述】:

我可以在 localhost:8089 上获取页面,但不是 style.css 。这些是 firefox 和 chrome 的结果:

火狐:

GET http://localhost:8089/static/style.css?v=1.0   [HTTP/1.1 200 OK 17ms]
The stylesheet http://localhost:8089/static/style.css?v=1.0 was not loaded because its MIME type, “application/x-css”, is not “text/css”.

铬:

localhost/:5 Resource interpreted as Stylesheet but transferred with MIME type application/x-css: "http://localhost:8089/static/style.css?v=1.0".

如何让网络正常?请帮忙。

【问题讨论】:

    标签: locust


    【解决方案1】:

    你是否也遇到了这里提到的同样的问题?

    https://community.grafana.com/t/grafana-start-but-stylesheets-not-displayed/3250/11

    具体检查您的注册表 (https://gogs.io/docs/intro/troubleshooting#windows):

    • 错误:资源解释为样式表,但使用 MIME 类型 application/x-css 传输
    • 原因:Windows 注册表中的值错误
    • 解决方案:在注册表中的 HKEY_CLASSES_ROOT 中找到 .css,并将其 Content Type 更改为 text/css。

    【讨论】:

    • 或者也许这是应该在蝗虫中修复的东西。 @heyman 你怎么看?我们可以/应该按照这里的第二个答案做一些事情吗? stackoverflow.com/questions/22839278/…
    • 非常感谢,在我更改注册表设置并清除浏览器缓存@Cyber​​wiz 后它可以工作。
    猜你喜欢
    • 1970-01-01
    • 2018-12-15
    • 2019-08-08
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2011-11-17
    相关资源
    最近更新 更多