【问题标题】:webserver in kubernetes incoming https allowed reply content in http blockedKubernetes 中的网络服务器传入 https 允许 http 中的回复内容被阻止
【发布时间】: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

我该如何解决这个问题?谢谢。

【问题讨论】:

标签: http kubernetes https


【解决方案1】:

这是浏览器对象(您的网络服务器)的一项安全功能,可防止通过安全页面 (HTTPS) 加载 HTTP 内容。您需要升级后端以支持 HTTPS。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2013-04-19
    • 2011-10-25
    • 1970-01-01
    • 2019-11-09
    相关资源
    最近更新 更多