mirror of
https://github.com/trycua/computer.git
synced 2026-01-01 19:10:30 -06:00
update endpoint
This commit is contained in:
@@ -99,12 +99,11 @@ async def websocket_endpoint(websocket: WebSocket):
|
||||
try:
|
||||
async with aiohttp.ClientSession() as session:
|
||||
headers = {
|
||||
"Authorization": f"Bearer {client_api_key}",
|
||||
"Origin": f"https://{vm_name}.containers.cloud.trycua.com",
|
||||
"Authorization": f"Bearer {client_api_key}"
|
||||
}
|
||||
|
||||
async with session.get(
|
||||
f"https://www.trycua.com/api/vm/auth",
|
||||
f"https://www.trycua.com/api/vm/auth?vm_name={vm_name}",
|
||||
headers=headers,
|
||||
) as resp:
|
||||
if resp.status != 200:
|
||||
|
||||
Reference in New Issue
Block a user