title: Uncaught (in promise) TypeError: Failed to fetch reactjs
body: <p>Uncaught (in promise) TypeError: Failed to fetch ReactJS</p>
  
  <p>I tired to change code into,</p>
  
  <pre><code> headers: {
      'Access-Control-Allow-Origin': '*',
      "Content-type": "application/json; charset=UTF-8",
      'mode':'no-cors',
    },
  </code></pre>
  
  <p>Error will be show in localhost,</p>
  
  <p>api url from origin '<a href="http://localhost:3000" rel="nofollow noreferrer">http://localhost:3000</a>' <strong>has been blocked by CORS policy: Request header field access-control-allow-origin is not allowed by Access-Control-Allow-Headers in preflight response.</strong></p>
  
  <p><strong>Uncaught (in promise) TypeError: Failed to fetch</strong> </p>