title: Receiving JSON between local React App and local Springboot service issues
body: <p>I am running a local Springboot server, that when I access it locally in the browser, gives me a valid JSON object properly formatted (I verified this via JSON formatter).</p>
  
  <p>I am also locally running a React application using node. I am attempting to use fetch() to get back that JSON object and running into issues. Finally got around CORs header issues, but not cannot figure out why the JSON object isn't coming back. Here's my code </p>
  
  <pre><code>var headers = new Headers();
  headers.append("Content-type", "application/json;charset=UTF-8");
  
  var myInit = { method: 'GET',
                 headers: headers,
                 mode: 'no-cors',
                 cache: 'default',
  };    
  
  fetch(`http://localhost:3010/getJSON`, myInit)
    .then(function(response){
      console.log(response.data);
      console.log(response);
      console.log(JSON.parse(JSON.stringify(response)));
    },function(error){
      console.log(error);
    });
  </code></pre>
  
  <p>So when I run this in Chrome with the debugger, the responses to the 3 log statements are:</p>
  
  <p>1st logger</p>
  
  <pre><code>undefined
  </code></pre>
  
  <p>2nd logger</p>
  
  <pre><code>Response {type: "opaque", url: "", redirected: false, status: 0, ok: false,         
  …}
  body
  :
  (...)
  bodyUsed
  :
  false
  headers
  :
  Headers {}
  ok
  :
  false
  redirected
  :
  false
  status
  :
  0
  statusText
  :
  ""
  type
  :
  "opaque"
  url
  :
  ""
  __proto__
  :
  Response
  </code></pre>
  
  <p>3rd logger</p>
  
  <pre><code>{}
  </code></pre>
  
  <p>I have tried many different JSON parsing, stringify, etc, to no avail.</p>
  
  <p>The next confusing part, is if within the Chrome debugger I go to the "Network" tab, click on the /getJSON, it shows me the entire JSON object just fine in both the "Preview" and "Response" tabs. So clearly Chrome is connecting to it correctly. Here's Chrome's "Headers" tab within "Network":</p>
  
  <pre><code>Request URL:http://localhost:3010/getJSON
  Request Method:GET
  Status Code:200 
  Remote Address:[::1]:3010
  Referrer Policy:no-referrer-when-downgrade
  Response Headers
  view source
  Content-Type:application/json;charset=UTF-8
  Date:Thu, 12 Oct 2017 16:05:05 GMT
  Transfer-Encoding:chunked
  Request Headers
  view source
  Accept:*/*
  Accept-Encoding:gzip, deflate, br
  Accept-Language:en-US,en;q=0.8
  Connection:keep-alive
  Host:localhost:3010
  Referer:http://localhost:3000/
  User-Agent:Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 
  (KHTML, like Gecko) Chrome/61.0.3163.100 Safari/537.36
  </code></pre>
  
  <p>I have tried to mimic this header in my request, but not sure how it differs? Any help would be greatly appreciated as I am currently banging my head against the way with this!</p>