Skip to content

Fix VNC WebSocket auth: embed token in path param for noVNC#132

Merged
thisnick merged 1 commit intomainfrom
claude/fix-vnc-redirect-params-yJANT
Mar 15, 2026
Merged

Fix VNC WebSocket auth: embed token in path param for noVNC#132
thisnick merged 1 commit intomainfrom
claude/fix-vnc-redirect-params-yJANT

Conversation

@thisnick
Copy link
Copy Markdown
Owner

The upstream fix incorrectly removed the token from the noVNC path query parameter, expecting noVNC to pass the token URL param to the WebSocket connection natively. It doesn't — noVNC only uses the path param to build the WebSocket URL. This broke auth on the websockify endpoint.

Restore embedding the token inside the path param (vnc/websockify?token=...) so it reaches the auth middleware, and delete it from the visible URL to keep it out of browser history.

https://claude.ai/code/session_01TMLTZQ9HssUWawScCmeZGT

The upstream fix incorrectly removed the token from the noVNC `path`
query parameter, expecting noVNC to pass the `token` URL param to the
WebSocket connection natively. It doesn't — noVNC only uses the `path`
param to build the WebSocket URL. This broke auth on the websockify
endpoint.

Restore embedding the token inside the `path` param
(vnc/websockify?token=...) so it reaches the auth middleware, and
delete it from the visible URL to keep it out of browser history.

https://claude.ai/code/session_01TMLTZQ9HssUWawScCmeZGT
@thisnick thisnick merged commit 771a1c1 into main Mar 15, 2026
4 checks passed
@thisnick thisnick deleted the claude/fix-vnc-redirect-params-yJANT branch March 15, 2026 01:55
@github-actions github-actions bot mentioned this pull request Mar 15, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants