I described my problem in the title.
Some additional info:
0) When I enable the Network Inspect
in the React Native Debugger, everything works fine, and I don't have such a problem.
1) I use expo for my App.
2) I checked the problem on Android emulator (android v. 10) and on real android device (android v. 7) - the result is the same.
3) The problem is not repeated for iOS simulator.
4) I'm trying to make a GET request to remote server https://.../client/authorize
and pass a JWT with user's email address in the Authorization: Bearer header.
5) I use the axios
library for requests, but I have the same problem when I use native fetch
.
6) Expo version is 35.0.0
7) When I disable Network Inspect in the React Native Debugger the problem with authorization on Android devices is back.
Thanks in advance for your answers.