Skip to content

Allow custom headers on SignalR WebSockets on React Native #40346

Closed
@RobertSasak

Description

@RobertSasak

Is there an existing issue for this?

  • I have searched the existing issues

Is your feature request related to a problem? Please describe the problem.

SignalR client library in Typescript on React Native do not support custom headers. When connecting to hub security token is appended into url. This url then shows in various IIS logs and can be a security issue. You can see it in logs like this.

Information: WebSocket connected to wss://myhub.example/hub?access_token=eyJh....

In addition no other custom headers can be added.

This issue apply only to React Native.

Describe the solution you'd like

@BrennanConroy addressed exactly the same issue for NodeJS in #37205
Solution is to allow his changes also on React Native.

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    area-signalrIncludes: SignalR clients and servers

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions