cloudflare / cloudflare/cloudflared
💡Proxy http requests adding the cloudlfare access token
- Dominant language
- Go
- Stars
- 15.6k
- Forks
- 1.4k
- PR merge metrics
- No merged PRs in 30d
Description
**Describe the feature you'd like**
To use CLI applications that cannot add a custom header to the requests, it would be nice to provide a proxy like `cloudflard access tcp` that adds the authentication token to each proxied request.
The usage would be something like:
```
cloudflared access http --hostname cloudflare-access.site.com --url localhost:8080
```
and have other CLI or any application in general just use `http://localhost:8080` as the endpoint.
**Describe alternatives you've considered**
Right now the only way to have something like that working is to set the tunnel protocol to TCP and use `cloudflared access tcp`, that works but visiting the original protected endpoint doesn't work from the browser anymore
Contributor guide
Assessment
This issue has not been assessed yet.