Show HN: Tabserve.dev. HTTPS proxy using Web Workers and a Cloudflare Worker
tabserve.dev
Take a look: https://tabserve.dev
tabserve.dev
Take a look: https://tabserve.dev
Is this correct? Or should the value be the subdomain of the cloudflare worker? In other words, which is the "origin" of the proxied requests? I assume it's `app.tabserve.dev` since the user is accessing the tunneled service through the worker subdomain which would be the value of the `Host` header.
Yes, `Access-Control-Allow-Origin: app.tabserve.dev` is correct, app.tabserve.dev is the origin where the fetch requests are made to your localhost.
Since you are behind the reverse proxy anyway, there is probably not much of a security implication?
If you access other sites in the same browser, they'll be able to send requests to your private localhost server. I don't expect this to be a problem right now, but if it becomes a popular thing to do that might change.
You would take the same precautions as putting any other web server on the web - you might want to use a password or a hard to guess subdomain if you do not want others to access it. But I would assume you would be using test data in your dev environment.
The Cloudflare WAF (Web Application Firewall) also blocks requests to your web server. I think that is just DDOS protection.
cloudflared tunnel --url http://localhost:8080
it's the same thing right?
Tabserve adds a few extras:
- No need to install a CLI, safer as it is in the browser sandbox.
- Use the Chrome dev tools for observing requests.
- Config multiple reverse proxies on different browsers remotely.
- GUI.
The cloudflared tunnel also supports any TCP/UDP traffic, tabserve is just for http.
"No WebSocket requests."
I think streaming HTTP responses may currently work. The client forwards the response back to the original client chunk by chunk (it does not wait for the entire response). I still have more testing to do.