mirror of
https://github.com/sorenisanerd/gotty.git
synced 2024-12-23 07:27:29 +00:00
0e81c484a9
Safari doesn't support basic authentication for websocket sessions. This commit introduces a token-based authentication only for websocket connection. The token is shared by all clients and that might be not secure. However, basic authentication itself is insecure and the credential is already shared by clients, so don't mind.
15 lines
407 B
HTML
15 lines
407 B
HTML
<!doctype html>
|
|
<html>
|
|
<head>
|
|
<title>GoTTY</title>
|
|
<style>body, #terminal {position: absolute; height: 100%; width: 100%; margin: 0px;}</style>
|
|
<link rel="icon" type="image/png" href="favicon.png">
|
|
</head>
|
|
<body>
|
|
<div id="terminal"></div>
|
|
<script src="./js/hterm.js"></script>
|
|
<script src="./auth_token.js"></script>
|
|
<script src="./js/gotty.js"></script>
|
|
</body>
|
|
</html>
|