
https://test.huanxin.cn/web-pub/project/v1/code/branch/list
1.打开 Charles,顶部菜单栏点击 Proxy → Proxy Settings

2.默认端口 8888,勾选 Enable transparent HTTP proxying,直接点 OK 保存。

1.顶部菜单 Help → SSL Proxying → Install Charles Root Certificate





test.huanxin.cn,Port 填写:443,点 OK

https://test.huanxin.cn/web-pub/project/v1/code/branch/listtest.huanxin.cn 域名,展开找到路径 /web-pub/project/v1/code/branch/list 接口
test.huanxin.cn/web-pub/project/v1/code/branch/list
Charles 退出后,Windows 的代理可能没自动恢复,导致 Chrome 还在往127.0.0.1:8888发请求,而 Charles 没开,就会连不上。
Chrome 因为之前 Charles 的证书问题,给这个域名加了 HSTS “黑名单”,不清除的话,即使代理关了也会拒绝访问。
test.huanxin.cntest.huanxin.cn 点查询Not found,说明清除成功了Ctrl+Shift+N 开一个无痕窗口https://test.huanxin.cn/project 按上面步骤操作完,网站就能正常访问了。
Win + R 键,弹出「运行」窗口,输入:
certmgr.msc
回车,打开「证书管理器」。

Charles Proxy CA 开头的证书(你安装的那个,有效期 2026/5/14 - 2027/5/14)。

Help → SSL Proxying → Install Charles Root Certificate 调出来。Charles Proxy CA 证书 → 点击「查看证书」。
如果之前给 Chrome 也装过证书,也可以顺便删掉:
chrome://settings/securityCharles Proxy CA 并删除。原创声明:本文系作者授权腾讯云开发者社区发表,未经许可,不得转载。
如有侵权,请联系 [email protected] 删除。
原创声明:本文系作者授权腾讯云开发者社区发表,未经许可,不得转载。
如有侵权,请联系 [email protected] 删除。