Pass authentication token when opening ws console. Ref https://github.com/GNS3/gns3-web-ui/issues/1468

This commit is contained in:
grossmj 2023-10-22 15:50:05 +10:00
parent 76f2314e08
commit dbcb8a88c8

View File

@ -72,7 +72,7 @@ export class NodeConsoleService {
protocol = "wss"
}
return `${protocol}://${controller.host}:${controller.port}/${environment.current_version}/projects/${node.project_id}/nodes/${node.node_id}/console/ws`
return `${protocol}://${controller.host}:${controller.port}/${environment.current_version}/projects/${node.project_id}/nodes/${node.node_id}/console/ws?token=${controller.authToken}`
}
openConsolesForAllNodesInWidget(nodes: Node[]) {