3 ms·
The bigger problem would be what to connect it to, and how. You can't make arbitrary outbound connections from Javascript.
by duskwuff 11y ago
The bigger problem would be what to connect it to, and how. You can't make arbitrary outbound connections from Javascript.
- copy 11y agoWe're using this proxy script: https://github.com/benjamincburns/websockproxy https://github.com/benjamincburns/websockproxy
- iso-8859-1 11y agoI have a barely working HTTP proxy in client-side-JavaScript here: https://github.com/ysangkok/browser-http-proxy https://github.com/ysangkok/browser-http-proxy This allows you to connect to CORS enabled sites without using the WebSocket proxy. It talks HTTP on the serial port. I want to add SNI support to tlstunnel so that I can tunnel to google.com by navigating to https://google.com.mydomain/ https://google.com.mydomain/ and having the snitunnel tunnel to http://google.com http://google.com by reading the bottom-level domain names using SNI. Using this with browser-http-proxy, it would be possible to tunnel to HTTP sites on a request-based level (making it easier to scale) and without relying on tun/tap on the server. Also it could serve as a fallback for non-CORS enabled hosts.