Skip to content

Proxy causes WebSocket upgrade to fail with a 400 code #25

@jvendryes

Description

@jvendryes

When utilizing fetch-proxy for an application that uses WebSockets, the following error appears in console:
WebSocket connection to 'ws://[redacted]/sockjs-node/223/rqzkemou/websocket' failed: Error during WebSocket handshake: Unexpected response code: 400

When accessing the same application by IP address (so outside of fetch-proxy), the error no longer happens and WebSockets behave properly.

Best guess is some changes are required here but I haven't looked closely yet: https://github.com/kcmerrill/fetch-proxy/blob/master/proxy.go#L20

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions