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

chrome 把 url 重定向到 127.0.0.1

  •  
  •   ainyyy · Jul 18, 2022 · 1794 views
    This topic created in 1379 days ago, the information mentioned may be changed or developed.

    使用 chrome 访问某个网站的时候地址总是会自动变成 127.0.0.1 ,如 a.pxc.com/xxx-job,确定之后就会变成 127.0.0.1/xxx-job 。但是 b.pxc.com 的网页可以正常访问。 ping ip 解析地址是对的。chrome 开无痕模式就可以正常访问,我以为是插件的问题,插件全部禁用也不行。只有无痕模式可以正常访问。 edge 和 chrome 有一样的问题,ie 是正常的。

    4 replies    2022-07-18 17:19:22 +08:00
    yukiww233
        1
    yukiww233  
       Jul 18, 2022
    地址栏都变了大概率是后端根据 ua 返回了一个重定向的 code
    mxT52CRuqR6o5
        2
    mxT52CRuqR6o5  
       Jul 18, 2022
    是公司电脑吗?
    gzlock
        3
    gzlock  
       Jul 18, 2022
    用 postman 之类的检查一下返回结果
    ainyyy
        4
    ainyyy  
    OP
       Jul 18, 2022
    找到问题了,后端服务的问题,正常访问带的 cookie 有问题,返回响应头的 location 是 127.0.0.1+地址,无痕模式因为没有 cookie 所以是正常的。 把网站的 cookie 清除了就可以正常访问,
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   6069 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 45ms · UTC 02:54 · PVG 10:54 · LAX 19:54 · JFK 22:54
    ♥ Do have faith in what you're doing.