可以将Google Chrome浏览器用作代理服务器吗?

wal*_*lla 6 google-chrome http-proxy google-chrome-extension google-chrome-app

在我的特定网络环境中,Google chrome可执行文件可以通过经过身份验证的传出代理服务器外部网站进行访问。但是,其他可执行文件(当指向该传出代理时)不能这样做。

I now have the idea to use Chrome itself as a local proxy for other executables like git or pip. - Is this possible, say, with a Chrome extension or with a tool that uses Chrome in a headless mode to connect to the Internet?

To clarify, I am not asking how to configure the proxy settings inside Chrome - I have successfully done this. I am asking how I can set up Chrome to receive HTTP(S) requests from other local programs and pass the requests on as an intermediate proxy (to the outgoing proxy specified in Chrome's settings).

fre*_*nte 2

就其本身而言,不会:Chrome 不会打开其他软件可以连接的端口。即使 WebRTC 也需要中间服务器来开始浏览器之间的点对点连接。

然而,Chrome 支持Native Messaging,这意味着它将执行系统上已存在的特定本机应用程序。

通过此设置,您可以:

  • 接受传入连接并将数据转发到扩展的本机应用程序。
  • 该扩展程序侦听来自应用程序的消息,并通过 Chrome 将它们发送到互联网上的其他地方。