Skip to content

[Bug]: Remote Web pairing advertises a plain-HTTP origin that can never be a secure context #22774

Open

Description

@nwparker

Split out of #19667 so the crash half can close with #22516.

#22516 fixes the code half: the Remote Web bundle no longer calls a secure-context-only
Web Crypto API, so the page loads over plain HTTP instead of white-screening.

This issue tracks the product half, which #22516 deliberately does not touch.

What happens

  1. Desktop: Remote Orca server -> Share this host -> Other devices / Tailscale (100.x).
  2. Click Generate access link.
  3. The Open in browser URL is http://<tailscale-ip>:<port>/web-index.html#pairing=...,
    with a ws:// pairing endpoint.

That origin can never be a secure context, so window.isSecureContext === false for
everyone who follows the link Orca itself generated. Port 6768 speaks plain HTTP, so
swapping the scheme to https:// is not a workaround (ERR_SSL_PROTOCOL_ERROR).

Why it still matters after #22516

The app loads now, but the origin stays non-secure, so every other secure-context-only
browser API is still unavailable there. Clipboard on the same origin was #10532. The
next such API to get used in the renderer produces the same class of report.

Possible directions (needs a product decision, not just a patch)

  • Terminate TLS for LAN/tailnet browser access and pair over wss://.
  • Or stop offering Open in browser for non-loopback addresses, and keep orca://
    and localhost for browser access.

Related: #19667, #10532, #16232, #18096.

Activity

  1. AmethystLiang commented on Sep 25, 2026

    @AmethystLiang
    Contributor

    Looking into it

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

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions