Disable automatic HTTPS upgrade for mixed content in Electron app - #17994
Merged
Conversation
3 tasks
Contributor
There was a problem hiding this comment.
Pull request overview
该 PR 针对 Electron 桌面端在本地启用 HTTPS 后,HTTP 外链图片被 Chromium 自动升级为 HTTPS 导致加载失败的问题,通过关闭对应的 Mixed Content 自动升级特性来恢复图片可见性(控制台 Mixed Content 警告仍会出现)。
Changes:
- 在 Electron 启动参数中禁用 Chromium 的
AutoupgradeMixedContent特性,阻止 HTTP 资源被自动升级为 HTTPS。
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
88250
approved these changes
Jun 30, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description / 描述
本地客户端使用 HTTPS 之后,用户的七牛云的图片无法显示了,原因是图片链接的 HTTP 协议自动升级为了 HTTPS:
本 PR 更改之后图片能显示,但控制台会出现警告,是正常现象,我没有找到办法能消除警告:
Type of change / 变更类型
缺陷修复
代码重构
新功能
修改文案或增加新语言
Checklist / 检查清单
我对自己的代码进行了自我审查
我拥有所提交代码的完整权利,并同意其以本项目的 AGPL-3.0 许可证授权
devbranch and has no merge conflictsPR 提交到
dev分支,并且没有合并冲突