react-native-windows icon indicating copy to clipboard operation
react-native-windows copied to clipboard

Bug: Unable to add authorization header to network requests from javascript.

Open stecrain opened this issue 7 years ago • 0 comments

In NetworkingModule.cpp the headers are appended to the headers object. https://github.com/microsoft/react-native-windows/blob/master/vnext/ReactUWP/Modules/NetworkingModule.cpp#L266

This throws when trying to add an authorization header.

The most straight-forward fix is to use TryAppendWithoutValidation instead of Append.

stecrain avatar May 14 '19 16:05 stecrain