V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
blink07
V2EX  ›  问与答

内网服务穿透到公网访问

  •  
  •   blink07 · Feb 17, 2023 · 1264 views
    This topic created in 1165 days ago, the information mentioned may be changed or developed.

    现公司有一个域名 1 ,用于公网访问,通过这个域名,先访问到公司对外公网域名 2 和端口上面,再通过这个对外公网域名和端口转发到公司内网服务,这里有个问题: 在阿里云上服务器上绑定域名 1 ,但是转发到公司对外公网域名 2 和端口上时发现公司域名不是 https 访问,内网服务也不是,域名 1 是 https ,通过域名 1 可以访问内网服务登录页,但是无法登录,报 The page at 'https://xxx/#/login' was loaded over HTTPS, but requested an insecure XMLHttpRequest endpoint 'http://xxx/api/v1/login/'. This request has been blocked; the content must be served over HTTPS. 请问如何解决

    whileFalse
        1
    whileFalse  
       Feb 17, 2023 via iPhone
    说了半天没说到点上。

    你有两个站。站点 1 页面是 https 的,页面中引用了站点 2 的资源,但是站点 2 是 http 的,被浏览器的安全策略阻止了

    把站点 2 升级成 https 不就完了
    blink07
        2
    blink07  
    OP
       Feb 17, 2023
    @whileFalse 站点 2 在内网,不想升 https ,有其他办法吗
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   3295 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 36ms · UTC 13:20 · PVG 21:20 · LAX 06:20 · JFK 09:20
    ♥ Do have faith in what you're doing.