This commit is contained in:
baodev0
2026-07-23 10:51:58 +07:00
parent c13ff0229d
commit 1459fd49a3
7 changed files with 47 additions and 17 deletions
@@ -80,12 +80,7 @@ class VCenterController extends Controller
return response()->json([
'error' => false,
'data' => preg_replace(
'#^wss://[^/]+#',
'wss://' . self::CONSOLE_HOST,
$ticket['data']
),
'host' => $vcenter->host,
'data' => 'wss://' . self::CONSOLE_HOST . '/ticket/' . $ticket['data']['ticket'] . '?host=' . $ticket['data']['host'],
'vmware-api-session-id' => $serviceVCenter->token,
])->cookie('vmware-api-session-id', $serviceVCenter->token, 60, '/', null, false, false);
}