whistle icon indicating copy to clipboard operation
whistle copied to clipboard

云服务器vscode远程开发环境使用whistle.protocol把所有的https转成http

Open shirleyYing opened this issue 1 year ago • 5 comments

image

使用vscode远程开发,在云机器上安装了whistle。所有代理和本地开发一模一样。但是所有https的请求protocol都会被转成http 导致项目中配置了域名代理的外部服务被拒绝,返回状态码403

对比本地开发。发现只有protocol这里有不同 image

shirleyYing avatar Aug 02 '23 03:08 shirleyYing

看下服务器为什么会返回 302

avwo avatar Aug 02 '23 04:08 avwo

腾讯云的登录接口,https://cloud.tencent.com/login/wechat。不是自己的业务接口,看不到

shirleyYing avatar Aug 02 '23 06:08 shirleyYing

导出抓包看下

avwo avatar Aug 02 '23 06:08 avwo

最新版本whistle遇到同样问题,protocol栏显示HTTPS>HTTP。替换回2.9.30版本就没有问题了。

phoenixxyang avatar Oct 11 '23 03:10 phoenixxyang

配了 host 或者是本地服务,对于访问失败的 https 请求whistle会自动转成 http,可以通过 disable://auto2http 禁用

avwo avatar Oct 11 '23 03:10 avwo