【发布时间】:2021-11-19 02:57:23
【问题描述】:
我在 k8s 中以 Angular 材质部署了一个 Web 服务器,并为此服务配置了一个入口,该入口允许 https 传入查询。此网络服务器通过 http 与后端服务对话以获取查询内容。
-------https------->ingress---->webserver--------http-------->服务回答查询
我有一个错误,入口阻止了来自 http 的回复内容
错误信息是: 混合内容:
The page at https://myserver.com was loaded over ####.js HTTPS, but requested an insecure XMLHttpRequest endpoint: "http://backend:port/end_point"
This request has been blocked; the content must be served over https
我尝试了以下解决方案,但它对我不起作用。 Redirects using http instead of https when in k8s with tls hand off by ingress
我该如何解决这个问题?谢谢。
【问题讨论】:
-
您能否通过显示minimal reproducible example 来帮助我们,以便我们帮助您解决问题
标签: http kubernetes https