ttyd icon indicating copy to clipboard operation
ttyd copied to clipboard

When ttyd has credential configuration enabled, it fails to connect via Safari

Open coolestowl opened this issue 9 months ago • 3 comments

Describe the bug A clear and concise description of what the bug is. when ttyd is launched with the credential configuration, it fails to connect via Safari and keeps prompting to reconnect. However, it works fine with Chrome. Without the credential configuration, everything works as expected.

To Reproduce Steps to reproduce the behavior:

  1. install ttyd, brew install ttyd or download binary directly
  2. run with credential, ttyd -W -p 80 -c 'hello:world' bash
  3. open Safari or Chrome, connect to localhost:80, ttyd works in Chrome but not in Safari
  4. run without credential, ttyd -W -p 80 bash
  5. ttyd works well in both Chrome and Safari

Expected behavior should work in both Chrome and Safari, regardless of whether the credential is configured.

Environment:

  • OS: macOS 15.4 & ubuntu-server 24.10
  • Browser: Safari 18.4 & Chrome 134.0.6998.166

coolestowl avatar Apr 08 '25 09:04 coolestowl

same!

caffeinum avatar Jul 11 '25 01:07 caffeinum

+1

ysl2 avatar Aug 08 '25 02:08 ysl2

I can confirm the issue still exists on macOS 26.1, even if ttyd is served over HTTPS (via nginx reverse proxy).

omer-erkek avatar Nov 28 '25 10:11 omer-erkek