Hi Proxmox Community,
I’m trying to integrate the noVNC interface provided by Proxmox into an iframe or access it via an incognito tab. However, I’m encountering a 401 Unauthorized error.
The vncticket is generated using the /vncproxy and /vncwebsocket APIs.
Both the PVEAuthCookie and CSRFPreventionToken are included, but it still results in a 401 Unauthorized error.
Thanks in advance for your help!
I’m trying to integrate the noVNC interface provided by Proxmox into an iframe or access it via an incognito tab. However, I’m encountering a 401 Unauthorized error.
Here’s the URL I’m currently trying to use for VNC access:
Code:
https://<hostip>:8006/?vncticket=<ticket>&port=5900&console=lxc&xtermjs=1&vmid=172&vmname=vnc-test&node=inn-prox&cmd=&PVEAuthCookie=<token>&CSRFPreventionToken=<csrf>
Both the PVEAuthCookie and CSRFPreventionToken are included, but it still results in a 401 Unauthorized error.
My Goals
- Integrate the noVNC session with an iframe in my application.
- Use noVNC in incognito mode or without relying on proxmox authentication.
Questions
- Is it possible to directly pass the PVEAuthCookie and CSRFPreventionToken in the URL for VNC access?
- Alternatively, is there a way to authenticate using a username and password directly in the URL or through an API call that enables seamless access?
- Are there any other recommended approaches to bypass or correctly handle these authorization requirements for noVNC integration?
Thanks in advance for your help!