WebSocket close with status code 1006

Hello,

I was using the reverse proxy on my Synology NAS, and then I discovered Caddy. As soon as I installed it, I thought it was amazing.

However, I have an issue. I configured all my RP entries in the Caddyfile without any problems, and it worked immediately!
Still, I have an issue: when I’m on the internet, there are no problems, but as soon as I am on a corporate proxy, it no longer works (apparently the websockets).

However, with my old Syno NAS, there was no issue, and the corporate network is the same !
I’m trying to access code-server, here is the configuration I have set up:

code.domain.ltd {
        reverse_proxy http://code.home:8080
}

And the errors in the web browser :

ERR CodeExpectedError: WebSocket close with status code 1006
then
ERR [remote-connection][Management ][601c2…][initial][WebSocket(code.domain.ltd:443)] socketFactory.connect() failed or timed out. Error:

I don’t see any log on caddy server…

It’s appaear to be a Firefox problem ?

Thanks for helping

I’m on firefox as well and it seems to be a regression released in version 2.9.1
I deployed version 2.8.4 and it works again.

Will this be fixed in a future version?
Or should I have to downgrade ?”

If this is a bug, please share details here:

Maybe the corporate proxy doesn’t support WebSockets over HTTP/2?

Caddy added support for this in 2.9.0: Support WebSockets over HTTP/2 (RFC8441) · Issue #5565 · caddyserver/caddy · GitHub

(possibly) related Firefox issues: