Skip to content

Conversation

@STRRL
Copy link

@STRRL STRRL commented Jun 23, 2025

close #1437

we have already used AuthToken with WebSocket, so the basic auth header is not required

@STRRL
Copy link
Author

STRRL commented Jun 23, 2025

Safari / WebKit does not send basic auth header with web socket request, so ttyd would not works with iPad, iPhone, because actually all browser on apple's mobile device are actually based on WebKit.

https://bugs.webkit.org/show_bug.cgi?id=80362


// Skip Basic Auth check for WebSocket path when credentials are configured
// Safari doesn't support Basic Auth headers with WebSocket, rely on AuthToken instead
if (server->credential == NULL || server->auth_header != NULL) {
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What if I configured credential only?

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What if I configured credential only?

Hello, I've added a "bell" pull would you be interested in checking it out

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

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

3 participants