![](/img/trans.png)
[英]Kibana has strict security requirements enabled that your current browser does not meet
[英]Cant Access Kibana URL: This Kibana installation has strict security requirements enabled that your current browser does not meet
我無法從瀏覽器訪問 kibana。 當我對 kibana 執行 curl 時出現以下錯誤。 kibana 通過 ingress controller 訪問。
curl xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx.elb.ap-south-1.amazonaws.com/app/kibana
<div class="kibanaWelcomeLogo"></div></div></div><h2 class="kibanaWelcomeTitle">Please upgrade your browser</h2><div class="kibanaWelcomeText">This Kibana installation has strict security requirements enabled that your current browser does not meet.</div></div><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></body></html>root@10:~/EK/work#
基巴納入口
apiVersion: extensions/v1beta1
kind: Ingress
metadata:
name: kibana
namespace: logging-od
annotations:
kubernetes.io/ingress.class: "nginx"
spec:
rules:
- http:
paths:
- path: /app/kibana
backend:
serviceName: logging-kibana
servicePort: 5601
使用 kubectl 代理轉發到 kibana 服務工作沒有任何問題
kubectl -n logging port-forward svc/kibana --address 0.0.0.0 8088:5601
查看了入口 controller 日志,但一切順利。
10.224.91.15 - - [04/Mar/2021:05:12:35 +0000] "GET /app/kibana HTTP/1.1" 200 75425 "-" "curl/7.47.0" 152 0.019 [logging-od-logging-kibana-5601] [] 100.64.131.52:5601 75425 0.016 200 429c46c4006caefa2a160018cca3195d
任何的想法
Go 到 conf/kibana.yml,並嘗試設置 csp.strict: false
但是請確保這不是在生產實例中完成的
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.