title: React native - FETCH - Authorization header not working
body: <p>I made a server query via an app developed using react-native. I used fetch API and it turns out any query with authorization header not working. POST and GET method REQUESTS that don't expect Authorization headers at the server side works well. Some Queries at the server side are protected with authorization and when I make such queries including authorization header, I always get '401:unauthorized' error.
  But such queries works well with POSTMAN. Any suggestions here would be of great help.</p>
  
  <pre><code>getThingsApi() {
  
  let uri = "https://example.com/things/";
  let req = {
    method: "GET",
    credentials: "include",
    //mode: "no-cors",
    headers: {
      'Accept': 'application/json',
      'Content-Type': 'application/json',
      //'Access-Control-Request-Method': 'GET',
      //'Access-Control-Request-Headers': 'origin, x-requested-with',
      'Origin': '',
      'Host':'example.com',
      'authorization': 'Basic '+Base64.btoa('aaa:bbb'),
      'Cache-Control': 'no-cache'      
    }
  };
  
  fetch(uri, req)
    .then(response =&gt; response.json())
    .then(responseJson =&gt; {
    console.log("ResponseAxis::" + JSON.stringify(responseJson));
      console.log("ResponseAxis::" + JSON.stringify(responseJson));
      alert("ResponseAxis::" +JSON.stringify(responseJson));
    })
    .catch(error =&gt; {
      console.log("Error::" + JSON.stringify(error));
    });
  </code></pre>
  
  <p>}</p>