Hi guys,
I have been working on the problem that I am trying to open a noVNC session like this
but I only get a 401 no ticket back I also didn't find what helps me here in the forum
because I get the port and the ticket here
I hope someone can help me here
I have been working on the problem that I am trying to open a noVNC session like this
JavaScript:
const encodedTicket = encodeURIComponent(ticket);
https://${host}:8006/api2/json/nodes/${node}/lxc/${vmid}/vncwebsocket?port=${port}&vncticket=${encodedTicket}
but I only get a 401 no ticket back I also didn't find what helps me here in the forum
because I get the port and the ticket here
Code:
const response = await axios.post(
`${PROXMOX_API_URL}/nodes/${node}/lxc/${vmid}/vncproxy`,
{
headers,
httpsAgent: agent,
}
);
I hope someone can help me here