Add path-scoped SignalR cookie repro with React Native client and Node server - #1
Draft
dmitryya-tr with Copilot wants to merge 20 commits into
Draft
dmitryya-tr with Copilot wants to merge 20 commits into
dmitryya-tr with Copilot wants to merge 20 commits into
Conversation
Co-authored-by: dmitryya-tr <65709639+dmitryya-tr@users.noreply.github.com>
Co-authored-by: dmitryya-tr <65709639+dmitryya-tr@users.noreply.github.com>
Co-authored-by: dmitryya-tr <65709639+dmitryya-tr@users.noreply.github.com>
Co-authored-by: dmitryya-tr <65709639+dmitryya-tr@users.noreply.github.com>
Co-authored-by: dmitryya-tr <65709639+dmitryya-tr@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Add Node server and React Native app with SignalR communication
Add path-scoped SignalR cookie repro with React Native client and Node server
Sep 6, 2026
Co-authored-by: dmitryya-tr <65709639+dmitryya-tr@users.noreply.github.com>
Co-authored-by: dmitryya-tr <65709639+dmitryya-tr@users.noreply.github.com>
Co-authored-by: dmitryya-tr <65709639+dmitryya-tr@users.noreply.github.com>
Co-authored-by: dmitryya-tr <65709639+dmitryya-tr@users.noreply.github.com>
Co-authored-by: dmitryya-tr <65709639+dmitryya-tr@users.noreply.github.com>
Co-authored-by: dmitryya-tr <65709639+dmitryya-tr@users.noreply.github.com>
Co-authored-by: dmitryya-tr <65709639+dmitryya-tr@users.noreply.github.com>
Co-authored-by: dmitryya-tr <65709639+dmitryya-tr@users.noreply.github.com>
Co-authored-by: dmitryya-tr <65709639+dmitryya-tr@users.noreply.github.com>
Co-authored-by: dmitryya-tr <65709639+dmitryya-tr@users.noreply.github.com>
Co-authored-by: dmitryya-tr <65709639+dmitryya-tr@users.noreply.github.com>
Co-authored-by: dmitryya-tr <65709639+dmitryya-tr@users.noreply.github.com>
Co-authored-by: dmitryya-tr <65709639+dmitryya-tr@users.noreply.github.com>
Co-authored-by: dmitryya-tr <65709639+dmitryya-tr@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This repo now reproduces the case where the SignalR endpoint lives under a non-root base path (for example,
https://my.domain/my/path) and the server sets two cookies with different path scopes. The React Native app shows which cookies make it through the HTTP priming request, SignalR negotiate request, and WebSocket connection.Node repro server
SignalRServer/that exposes:GET /my/path/statusfor cookie priming/reportingPOST /my/path/hub/negotiatefor SignalR negotiationGET /my/path/hub?id=...for the WebSocket transportPath=/)Pathon the priming route so the browser/client derives the path scope from/my/pathOPTIONSand hardens malformed WebSocket payload handlingReact Native repro client
ReproducerApp/App.tsxfetch(..., { credentials: 'include' })withCredentials: true/statusand/hubURLs plus the server-side request reportsPath handling
<base>/status<base>/hubRepo cleanup
Example of the path-based client configuration:
Original prompt