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

如何在HTTPS网页中显示HTTP内容,http,nginx,https,mixed-content,Http,Nginx,Https,Mixed Content,我在我的服务器(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://e

我在我的服务器(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.
  • 我们无法从HTTPS源获取HTTP资源
  • 大多数浏览器出于安全原因阻止它
  • 我们可以通过您的服务器代理web服务的答案
  • 我们无法从HTTPS源获取HTTP资源
  • 大多数浏览器出于安全原因阻止它
  • 我们可以通过您的服务器代理web服务的答案