felixzzz
V2EX  ›  问与答

nginx springboot 代理 https 问题

  •  
  •   felixzzz · Dec 26, 2020 · 881 views
    This topic created in 1965 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   ·   1257 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 36ms · UTC 23:38 · PVG 07:38 · LAX 16:38 · JFK 19:38
    ♥ Do have faith in what you're doing.