8000 Deny content encoding and length headers when proxying websockets by ostenbom · Pull Request #249 · mentimeter/linkup · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Deny content encoding and length headers when proxying websockets #249

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

Merged

Conversation

ostenbom
Copy link
Contributor

When proxying WebSocket connections over two hops via the Cloudflare worker and the linkup local server, we have found that there are cases where content encoding and content length headers exist in the upstream response from the underlying local server.

When those headers exist in a WebSocket handshake, Cloudflare workers completely denies the WebSocket connection.

These headers shouldn't make sense in a WebSocket proxying scenario since they are only valid for HTTP response bodies which shouldn't exist when using WebSockets.

@ostenbom ostenbom force-pushed the oliver/deny-content-ws-headers branch from 15d0c8d to 52cce3f Compare June 26, 2025 09:24
@ostenbom ostenbom force-pushed the oliver/deny-content-ws-headers branch from 52cce3f to 80af503 Compare June 26, 2025 09:26
@augustoccesar augustoccesar merged commit 59b0d6c into mentimeter:main Jun 27, 2025
6 checks passed
augustoccesar added a commit that referenced this pull request Jun 27, 2025
Changelog:
- #249
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants
0