title: Cross-Origin Read Blocking Error in reactjs
body: <p>I'm learning ReactJS. I'm using <code>fetch</code> for getting data from an API. I used below code for it.</p>
  
  <pre><code> fetch('http://myurl.com/api')
                .then(res =&gt; res.json())
                .then(res =&gt; console.log(res));
  </code></pre>
  
  <p>The API is hitting with status <code>200 ok</code> but in response <strong>Nothing to Preview</strong> and in console getting below error</p>
  
  <blockquote>
    <p>Cross-Origin Read Blocking (CORB) blocked cross-origin response
    <a href="http://myurl.com/api" rel="nofollow noreferrer">http://myurl.com/api</a> with MIME type
    application/json. See
    <a href="https://www.chromestatus.com/feature/5629709824032768" rel="nofollow noreferrer">https://www.chromestatus.com/feature/5629709824032768</a> for more
    details.</p>
  </blockquote>
  
  <p>I also added headers in below code.</p>
  
  <pre><code> fetch("http://xxx.xxx.xxx.xxx:8081/api/category/popular",{
                   method: 'GET',
                    headers: {
                      'Access-Control-Allow-Origin': '*',
                    },
                })
  </code></pre>
  
  <p>I have below json in API response</p>
  
  <pre><code>  {  
     "data":[  
        {  
           "parent_id":"5c2f74e0a4d846591b2b1a40",
           "icon":"http://myurl.in:8081/default.png",
           "_id":"5c2f74e8a4d846591b2b1a41",
           "name":"Shop",
           "modified_at":"2019-01-04T14:59:52.791Z",
           "created_at":"2019-01-04T14:59:52.791Z"
        },
        {  
           "parent_id":"5c2f74e0a4d846591b2b1a40",
           "icon":"http://myurl.in:8081/default.png",
           "_id":"5c2f7566a4d846591b2b1a42",
           "name":"Home Service",
           "modified_at":"2019-01-04T15:01:58.507Z",
           "created_at":"2019-01-04T15:01:58.507Z"
        },
        {  
           "parent_id":"5c2f74e0a4d846591b2b1a40",
           "icon":"http://myurl.in:8081/default.png",
           "_id":"5c5c2dd30d017c401ec17253",
           "name":"Test",
           "modified_at":"2019-02-07T13:08:35.653Z",
           "created_at":"2019-02-07T13:08:35.653Z",
           "__v":0
        }
     ]
  }
  </code></pre>