1
0
Fork 0
mirror of https://github.com/retspen/webvirtcloud synced 2026-11-11 12:46:49 +00:00

fix(console): lite noVNC page uses the signed token, not the URL token

readQueryVariable('token', ...) preferred the unsigned host-uuid token
from the URL, which novncd rejects; use the signed token the view
renders, like the full page does.
This commit is contained in:
catborise 2026-10-02 23:57:25 +03:00
parent 78852eb4c8
commit 0f611e6383
2 changed files with 17 additions and 1 deletions

View file

@ -294,7 +294,7 @@
} else {
url += '/';
}
const token = readQueryVariable('token', '{{ token|escapejs }}');
const token = '{{ token|escapejs }}';
if (token) {
url += (url.includes('?') ? '&' : '?') + 'token=' + encodeURIComponent(token);
}