我想写一个自动测试,测试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中禁用,但我不想仅仅为了测试而禁用它。
暂无答案!
目前还没有任何答案,快来回答吧!