【问题标题】:How to display HTTP content in HTTPS webpage如何在 HTTPS 网页中显示 HTTP 内容
【发布时间】:2019-05-06 11:07:00
【问题描述】:

我在我的服务器(HTTPS)中运行 NGINX,并且我还在服务器中运行了一个 API(通过 PM2)。此 API 响应是 HTTP,我想在 HTTPS 网页中显示响应。

我无法在 HTTPS 中运行 PM2 API。我想要的是允许 HTTPS 提供 HTTP 内容。

Mixed Content: The page at 'https://example_web.com' was loaded over HTTPS, but requested an insecure XMLHttpRequest endpoint 'http://example_api.com'. This request has been blocked; the content must be served over HTTPS.

【问题讨论】:

    标签: http nginx https mixed-content


    【解决方案1】:
    1. 我们无法从 HTTPS 源获取 HTTP 资源。
    2. 出于安全原因,大多数浏览器都会阻止它。
    3. 我们可以通过您的服务器代理网络服务的答案。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2015-12-04
      • 2015-03-22
      • 1970-01-01
      • 2020-07-24
      • 2015-12-12
      • 2016-12-07
      • 2016-11-01
      • 2012-05-28
      相关资源
      最近更新 更多