title: Get TypeError Network Request Failed using react native fetch json url
body: <p>I would like to create simple apps that make user can post data to json.</p>
  <p>Here is my code.</p>
  <pre><code>  componentDidMount = () =&gt; {
  
    fetch('https://site.json', 
       {
        method: 'POST',
        headers: {
          &quot;Accept&quot;: &quot;application/json&quot;,
          &quot;Content-Type&quot;: 'application/json',  
          },
        body: JSON.stringify({ 
          value: 'React POST Request Example' 
          })
        }
       ).then(response =&gt; response.json()).then(data =&gt; console.log(data))  
    .catch(err =&gt; console.log(&quot;api Erorr: &quot;, err));
     }
  </code></pre>
  <p>But finally,  I get an error  <code>api Erorr:  [TypeError: Network request failed]</code></p>
  <p>Is it Cors block my access???</p>
  <p>Any idea how to solve it, Thank you very much</p>