Skip to content

Feature request: Support query string authentication on API WebSocket endpoint #1001

@fiatjaf

Description

@fiatjaf

Currently the Eclair API expects an Authorization header for all its requests, including the WebSocket endpoint at /ws.

While integrating support for Eclair on https://github.com/fiatjaf/kwh/ I found out that, although Chrome/ium will automatically take the credentials from an URL like ws://user:pass@localhost:1234/ws and make an Authorization header with them, the same is not true for Firefox.

There's no way to specify custom headers on the browser WebSocket provider.

To support build of apps that run in the browser and interact with the Eclair API, the WebSocket endpoint could support the password in the querystring, like ws://localhost:1234/ws?password=foobar.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions