解决方向代理错误

0

使用iframe提示错误:

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

Tomcat配置:

<Valve className="org.apache.catalina.valves.RemoteIpValve" remoteIpHeader="X-Forwarded-For" protocolHeader="X-Forwarded-Proto" protocolHeaderHttpsValue="https"/>

SpringBoot配置:

  tomcat:
    remoteip:
      host-header: X-Forwarded-Host
      protocol-header: X-Forwarded-Proto
      remote-ip-header: X-Forwarded-For
      protocol-header-https-value: https