kibana有严格的安全要求,这是当前浏览器无法满足的

t9aqgxwy  于 2021-06-14  发布在  ElasticSearch
关注(0)|答案(0)|浏览(1834)

我想写一个自动测试,测试kibana ui中是否有日志,并且我在使用java向kibana发送http请求时遇到问题。在浏览器中,一切正常,但当我从jsoup库发送http请求时(curl也是如此),kibana向我显示以下内容:

Please upgrade your browser This Elastic installation has strict
security requirements enabled that your current browser does not meet.

看起来kibana正在执行一些易受攻击的js,如果执行正确,它将停止加载kibana ui。

<script>
            // Since this is an unsafe inline script, this code will not run
            // in browsers that support content security policy(CSP). This is
            // intentional as we check for the existence of __kbnCspNotEnforced__ in
            // bootstrap.
            window.__kbnCspNotEnforced__ = true;
          </script>
  <script src="/bundles/app/kibana/bootstrap.js"></script>

你知道如何从代码中解决这个问题吗?我认为这个安全特性可以从kibana.yaml中禁用,但我不想仅仅为了测试而禁用它。

暂无答案!

目前还没有任何答案,快来回答吧!

相关问题