felixzzz
V2EX  ›  问与答

nginx springboot 代理 https 问题

  •  
  •   felixzzz · Dec 26, 2020 · 965 views
    This topic created in 2038 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   ·   5980 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 29ms · UTC 02:29 · PVG 10:29 · LAX 19:29 · JFK 22:29
    ♥ Do have faith in what you're doing.