what do you mean by that? are you trying to implement a custom novnc client? if yes, what did you do exactly?Im use noVNC lib
'/nodes/' . $master->node . '/qemu/' . $server->vmid . '/vncproxy'
'/nodes/' . $master->node . '/qemu/' . $server->vmid . '/vncwebsocket'
wss://[PROXMOX_URL]:8006/api2/json/nodes/[NODE]/qemu/[VMID]/vncwebsocket?port=5902&vncticket=[URLENCODED_VNC_TICKET]
vnc.html?autoconnect=1&reconnect=1&logging=debug&host=[PVE_HOST]&password=[URLENCODED_VNC_TICKET]&path=api2%2Fjson%2Fnodes%2F[PVE_NODE]%2Fqemu%2F61338%2Fvncwebsocket%3Fport%3D5901%26vncticket%3D[URLENCODED_VNC_TICKET]
i want to know how to set the CORS attributes for the PVEAuthCookie ,thanksSorry for the late reply but thanks for mentioning @dcsapak. I injected the cookie into the websocket connection and now everything works just fine. It seems like I forgot to set the CORS attributes for the PVEAuthCookie so it wasn't set correctly and therefor not passed to the websocket. Please excuse my own dumbness in this matter.
Kind regards
How did you injected Cookie in websocket request., That issue is due to Cookies or CORS policy?Sorry for the late reply but thanks for mentioning @dcsapak. I injected the cookie into the websocket connection and now everything works just fine. It seems like I forgot to set the CORS attributes for the PVEAuthCookie so it wasn't set correctly and therefor not passed to the websocket. Please excuse my own dumbness in this matter.
Kind regards
We use essential cookies to make this site work, and optional cookies to enhance your experience.