Skip to content

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

@coolestowl

Description

@coolestowl

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions