Skip to content

🧐[Question] Chrome 142 从 github.io 访问 githubusercontent.com 资源时会出现 CORS 错误 #3776

@zhdbk3

Description

@zhdbk3

请认真检查以下清单中的每一项

  • 已经搜索过,没有发现类似的 issue(有个 🐛[BUG] Watt toolkit引发的Github CORS错误 #3540,但和我这个应该关系不大)
  • 已经搜索过文档,没有发现相关内容
  • 已经尝试使用过最新版,问题依旧存在
  • 使用的是官方版本(未替换及修改过安装目录程序文件)

🧐 问题描述

将 Chrome 更新到 142 版本后,使用 Watt Toolkit 加速 GitHub,然后从 github.io 域名下的网站访问 githubusercontent.com 域名下的资源时会出现 CORS 错误,如:

Access to resource at 'https://avatars.githubusercontent.com/u/161030746?s=110' from origin 'https://zhdbk3.github.io' has been blocked by CORS policy: Permission was denied for this request to access the unknown address space.

这似乎与 Chrome 在 142 中做出的重大安全更新有关,我测试了 Chrome 141 与 Edge,均不存在这个问题。

从 github.com 访问的 githubusercontent.com 资源不存在这个问题。

如果挂梯子的话,不会有这个问题,仅在使用 Watt Toolkit 加速时会出现这个问题,所以我来这里报告和询问。不确定是不是 Watt Toolkit 本身的 bug,所以我选择 question。

🚑 其他信息

Chrome 版本:142.0.7444.59

  • 处理器体系结构:x64
  • 系统版本号:Arch Linux 6.17.7
  • 下载渠道:AUR
  • 程序版本:3.0.0-rc.16
  • 是否包含独立运行时:否

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionFurther information is requested

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions