title: Cross-Origin Read Blocking (CORB) blocked cross-origin response with MIME type application/json
body: <p>calling service from reactjs to spring boot. getting below error
  Cross-Origin Read Blocking (CORB) blocked cross-origin response  with MIME type application/json</p>
  
  <p>react code:</p>
  
  <pre><code>fetch(URL, {method: 'GET',
              contentType: 'application/json',
              mode: 'no-cors'
            }).then (function (response) { return response.json()})
              .then(function (json) {debugger;console.log(json)})
              .catch(function (error) {debugger;console.log(error)});
  
  spring code:
  
      @GetMapping(path="/user/{aid}", produces= {"application/json"})
      public Optional&lt;User&gt; getUser(@PathVariable int aid) {
          return userRepo.findById(aid);
      }
  </code></pre>
  
  <p>error message: </p>
  
  <blockquote>
    <p>Cross-Origin Read Blocking (CORB) blocked cross-origin response  with MIME type application/json</p>
  </blockquote>