Repository navigation
WebSocket origin errors behind Traefik (X-Forwarded-Proto: wss) #3389
w00dwork
started this conversation in
Potential issues
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
I was perusing my dnscrypt-proxy logs and came across this warning, which repeats whenever the monitoring web interface is open:
[WARNING] WebSocket upgrade error: websocket: request origin not allowed by Upgrader.CheckOriginI'm running dnscrypt-proxy 2.1.20 behind Traefik.
After some troubleshooting, it looks like Traefik sends
X-Forwarded-Proto: wssfor secure WebSocket connections, while dnscrypt-proxy expectshttps, causing the origin validation to fail.Figured I'd pass this along in case it's something worth addressing.
All reactions