Commit 3ff8635
Apply custom dev support headers to iOS HTTP requests
Summary:
## Summary:
Apply custom HTTP headers from `RCTDevSupportHttpHeaders` to all HTTP requests
sent through `RCTHTTPRequestHandler`. This ensures that auth tokens and other
custom headers configured via the dev support header API are included in
network requests made by the networking module (e.g. `fetch()`).
## Changelog:
[IOS][CHANGED] - Apply custom dev support HTTP headers to RCTHTTPRequestHandler requests
## Test Plan:
Verified that the request is copied to a mutable request and headers are applied
via `RCTDevSupportHttpHeaders` before creating the data task.
## Facebook:
Applied from nest/mobile/apps/atod-sample/patches/react-native+0.83.1+006+atod-ios-http-handler.patch
Differential Revision: D950379201 parent 05a3851 commit 3ff8635
File tree
1 file changed
+4
-1
lines changed- packages/react-native/Libraries/Network
1 file changed
+4
-1
lines changedLines changed: 4 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
| 12 | + | |
12 | 13 | | |
13 | 14 | | |
14 | 15 | | |
| |||
99 | 100 | | |
100 | 101 | | |
101 | 102 | | |
102 | | - | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
103 | 106 | | |
104 | 107 | | |
105 | 108 | | |
| |||
0 commit comments