liftoff / GateOne

Gate One is an HTML5-powered terminal emulator and SSH client
http://liftoffsoftware.com/Products/GateOne
Other
6.28k stars 925 forks source link

authorization websocket #717

Open luomclc opened 5 years ago

luomclc commented 5 years ago

Hi Liftof,

I have the following code: const ws = new WebSocket(wss://localhost/ws, { rejectUnauthorized: false, origin: 'https://localhost' });

ws.on('open', function open () {

ws.send(JSON.stringify({'c':'pwd\n'}));

});

error: [E 181028 14:45:26 authorization:114] {"ip_address": "127.0.0.1"} ANONYMOUS -> char_handler failed requirement: policies: terminal

plesase help

Thanks,