felixzzz
V2EX  ›  问与答

nginx springboot 代理 https 问题

  •  
  •   felixzzz · Dec 26, 2020 · 893 views
    This topic created in 1974 days ago, the information mentioned may be changed or developed.
    问题描述
    nginx 开启强制 80 redirec443 端口,代理后端 springboot 本机 8080 端口
    问题是
    request.getRequestURL() 获取的是 http
    request.getHeader("Referer") 获取的是 https
    我拿着 referer 跟 url 比较 startsWith 就出问题了
    有遇到过这种问题的吗
    No Comments Yet
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   2814 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 26ms · UTC 13:22 · PVG 21:22 · LAX 06:22 · JFK 09:22
    ♥ Do have faith in what you're doing.