microsoft / microsoft/react-native-windows

WebSocket Headers on .72

Open
#12,475 0 comments 0 reactions 1 assignee View on GitHub

@JunielKatarn is already working on this.

Since Dec 4, 2023.

Area: Networking bug Workstream: Component Parity
Dominant language
C++
Stars
17.3k
Forks
1.2k
Avg merge
1d 13h
Merged PRs (30d)
33

Description

Problem Description

Upgraded to .72 and websocket headers are no longer passed through to the server.
Ok on .70, broken on .72

Steps To Reproduce

Create a WebSocket defining an authorization header

const _Socket = await new WebSocket('ws://localhost:6677/api/chat', null, { headers: { 'authorization': '#TOKEN#' }});

Throws 500 error, debug server and you'll see the header isn't coming through.

Expected Results

Header should be passed through.

CLI version

npx react-native -v

Environment
npx react-native info
Target Platform Version

10.0.19041

Target Device(s)

No response

Visual Studio Version

Visual Studio 2022

Build Configuration

Debug

Snack, code example, screenshot, or link to a repository

No response

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.