Skip to content

[0.85] Add support for custom headers in devsupport#55976

Open
cipolleschi wants to merge 1 commit into0.85-stablefrom
cipolleschi/devsupport-0.85
Open

[0.85] Add support for custom headers in devsupport#55976
cipolleschi wants to merge 1 commit into0.85-stablefrom
cipolleschi/devsupport-0.85

Conversation

@cipolleschi
Copy link
Contributor

Summary:

Backport of #55722 and #55969 to 0.85. Adds custom header capability to devsupport (Android & iOS).

Changes applied:

  • JS: setUpReactDevTools.js - derive ws/wss scheme and port from dev server URL
  • iOS: Add RCTHTTPRequestInterceptor, RCTMultipartDataTaskRequestInterceptor, and SRWebSocketProvider hooks for custom request interception
  • iOS: Make RCTInspectorDevServerHelper scheme-aware (http/https) instead of hardcoding http://
  • iOS: Add RCTDevSupportHttpHeaders to React umbrella header
  • Android: Use OkHttpClientProvider in WebSocketModule instead of creating standalone OkHttpClient

Most changes from the original PRs were already present on 0.85-stable. This PR applies the remaining 10 files.

Changelog:

[INTERNAL] - Backport devsupport custom header support to 0.85

Test Plan:

CI

@meta-cla meta-cla bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Mar 6, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. p: Facebook Partner: Facebook Partner Pick Request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants