guoguobaba
V2EX  ›  浏览器

chrome 切换 edge 发现问题多多

  •  
  •   guoguobaba · Oct 16, 2023 · 6550 views
    This topic created in 1116 days ago, the information mentioned may be changed or developed.
    访问某些网站总是载入失败,最明显的是 cloudflare 的验证,没有一次成功的,比如 hdchina.org 或者 maven repository ,一直在转校验地址


    还有一种是 mixed content 的访问,比如 https://xwqy.gsxt.gov.cn/ ,里面的 js 都是访问 http 的,允许 Insecurity content 页面能正常访问,但是搜索会出现
    ```
    Access to XMLHttpRequest at 'http://xwqy.gsxt.gov.cn/pc-geetest/register?t=1697392815424' from origin 'https://xwqy.gsxt.gov.cn' has been blocked by CORS policy: Response to preflight request doesn't pass access control check: Redirect is not allowed for a preflight request.
    ```
    的错误,因为访问的是 http 的接口。

    这些 chrome 都能正常访问。而且 f12 看,都是访问 https 的 url 。

    有人碰到这种情况吗,如何解决。
    20 replies  •  2023-10-16 18:07:40 +08:00
    lifei6671
    lifei6671
    Oct 16, 2023
    1
    如果 edge 真的有你说的这种问题,早就有人反馈了。你发的这个 页面中 js 是用的相对路径,不应该出现你说的问题。
    guoguobaba
    guoguobaba
    OP
    Oct 16, 2023
    2
    @lifei6671 网站都给你了,为啥不测试一下呢?
    seancong
    seancong
    Oct 16, 2023❤️1
    3
    试过了,没有你说的这些问题,https://xwqy.gsxt.gov.cn/ 这个网站打开控制台很干净,所有请求都是 https
    bqn
    bqn
    Oct 16, 2023
    4
    正常访问,为发现上述问题
    iv8d
    iv8d
    Oct 16, 2023 via Android❤️1
    5
    都用上 chrome 了,为什么回头吃 x ?
    guoguobaba
    guoguobaba
    OP
    Oct 16, 2023
    6
    @seancong 奇怪,我笔记本和台式机都没法访问,用隐私模式才行。另外 firefox 也不能访问。
    hdchina.org 也是如此,必须要隐私模式才行

    edge 我清除掉缓存,仍然会报不安全。
    root71370
    root71370
    Oct 16, 2023
    7
    可能是你本地有问题
    shaojz2005
    shaojz2005
    Oct 16, 2023
    8
    https://xwqy.gsxt.gov.cn
    用 firefox 会复现问题,整个网站无 css 和 js ,csp 阻止读取。但是 edge 和 chrome 没问题。不知道是不是设置了什么隐私策略引起的。
    iamjerry
    iamjerry
    Oct 16, 2023
    9

    控制台很干净
    guoguobaba
    guoguobaba
    OP
    Oct 16, 2023
    10
    @iamjerry 找了好几个人测试,很多有这种情况

    这些资源文件 http 和 https 都能访问,chrome 会自动跳到 https ,但 firefox 和 edge 不会
    tlerbao
    tlerbao
    Oct 16, 2023
    11
    @iv8d 确实,都用上 Chrome 了,为何去给自己找不自在
    guoguobaba
    guoguobaba
    OP
    Oct 16, 2023
    12
    @tlerbao 看我 firefox/edge/chrome 都用上了你就知道我要干啥了吧。
    lx0758
    lx0758
    Oct 16, 2023
    13
    我公司的 edge 也经常出现这种问题, 一直用的隐私模式....
    amiaaaz
    amiaaaz
    Oct 16, 2023
    14
    OP 你不是一个人……我经常遇到这样的情况
    用 edge 总是在一些网站卡校验,甚至会出现验证码怎么刷新都不正确的情况,但是换到火狐立刻就正常了,印象中这样的网站有 ucloud 的控制台、某银行贷款页面、阿里云域名管理页面,当然不止这两个 只是记忆不深刻了
    GLR
    GLR
    Oct 16, 2023
    15
    CloudFlare 验证不成功,或者根本没刷新出来的话,把 challenges.cloudflare.com 加条规则。
    lifei6671
    lifei6671
    Oct 16, 2023❤️1
    16
    @guoguobaba 我测试了好几次才回复你的。
    Damn
    Damn
    Oct 16, 2023 via iPhone
    17
    @iv8d chrome 就伟光正么?
    acehinnnqru
    acehinnnqru
    Oct 16, 2023 via iPhone
    18
    是不是有什么奇怪的代理?
    vmebeh
    vmebeh
    Oct 16, 2023 via iPhone
    19
    换一换 dns 试试,遇到过运营商 dns 返回的地址不正确的,只好换 114 才正常
    guoguobaba
    guoguobaba
    OP
    Oct 16, 2023
    20
    @GLR

    ```
    请求 URL:
    https://challenges.cloudflare.com/cdn-cgi/challenge-platform/h/g/flow/ov1/493488009:1697448334:BqNtO8rmcxP4B5yrRpAF0q_qkpIzNKoKmTMIrWqD5x0/816f7c414e1815a8/f85eefc003a32f2
    请求方法:
    POST
    状态代码:
    400 Bad Request
    远程地址:
    104.17.3.184:443
    引用者策略:
    same-origin
    ```

    没啥用
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   2672 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 46ms · UTC 13:13 · PVG 21:13 · LAX 05:13 · JFK 08:13
    ♥ Do have faith in what you're doing.