microsoft / microsoft/react-native-windows
WebSocket Headers on .72
Open
@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
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.