如何在HTTPS网页中显示HTTP内容

How to display HTTP content in HTTPS webpage

我的服务器 (HTTPS) 中有 NGINX 运行ning,我的服务器中还有 运行ning 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.
  1. 我们无法从 HTTPS 来源获取 HTTP 资源。
  2. 大多数浏览器出于安全原因阻止它。
  3. 我们可以通过您的服务器代理网络服务的答案。