NG配置添加: proxy_set_header X-Forwarded-Proto $scheme; # 必须为 https
proxy_set_header X-Forwarded-Proto $scheme; # 必须为 https
TOMCAT 添加
<Valve className="org.apache.catalina.valves.RemoteIpValve" protocolHeader="X-Forwarded-Proto" httpsServerPort="443" />
博客园 © 2004-2025 浙公网安备 33010602011771号 浙ICP备2021040463号-3