Authorization header does not work properly when RNDebugger Network Inspect is disabled

122 Views Asked by At

When toggle network inspect is disabled in RNDebugger, Authorization does not work properly, and I get Unauthorized response from the server. However, when I enable the network inspect in the debugger, it works properly and gives me the correct response. Can anyone help me?

Here is my request when network inspect is disabled:

network inspect disabled

and here is the same request when network inspect is enabled :

network inspect enabled

and this is my Axios request:

axios.get('https://*******.com/api/v1/profile',{
      headers:{
        'Cache-Control': 'no-cache, no-store, must-revalidate',
        'Pragma': 'no-cache',
        'Authorization':"<MY_TOKEN>",
      }
    })
        .then(res=>console.log(res))
        .catch(err=>console.log(err))
0

There are 0 best solutions below