Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
shirleyYing opened this issue Aug 2, 2023 · 5 comments

Comments

@shirleyYing
Copy link

image

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

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

@avwo
Copy link
Owner

avwo commented Aug 2, 2023

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

@shirleyYing
Copy link
Author

shirleyYing commented Aug 2, 2023

@avwo
Copy link
Owner

avwo commented Aug 2, 2023

导出抓包看下

@phoenixxyang
Copy link

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

@avwo
Copy link
Owner

avwo commented Oct 11, 2023

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants