title: Handle response - SyntaxError: Unexpected end of input when using mode: 'no-cors'
body: <p>I tried a ReactJS fetch call to a REST-API and want to handle the response. The call works, i get a response, which i can see in Chrome Dev Tools:</p>
  
  <pre><code>function getAllCourses() {
  fetch('http://localhost:8080/course', {
      method: 'POST',
      mode: 'no-cors',
      credentials: 'same-origin',
      headers: {
          'Accept': 'application/json',
          'Content-Type': 'application/json',
      },
      body: JSON.stringify({
          objectClass: 'course',
          crud: '2'
      })
  }).then(function (response) {
      console.log(response);
      return response.json();
  
  }).catch(function (err) {
      console.log(err)
  });
  }
  </code></pre>
  
  <p>When i try to handle the response, i got a "SyntaxError: Unexpected end of input" at</p>
  
  <pre><code>return response.json();
  </code></pre>
  
  <p>The console.log looks like this:</p>
  
  <p><a href="https://i.stack.imgur.com/tr01h.png" rel="noreferrer"><img src="https://i.stack.imgur.com/tr01h.png" alt="Console.log(response)"></a></p>
  
  <p>My Response JSON looks like this, it is valid, i checked it with jsonlint:</p>
  
  <pre><code>[
    {
      "0x1": {
        "users": [],
        "lectures": [],
        "owner": "0x2",
        "title": "WWI 14 SEA",
        "description": null,
        "objectClass": "course",
        "id": "course_00001"
      },
      "0x2": {
        "username": "system",
        "lectures": [],
        "course": null,
        "solutions": [],
        "exercises": [],
        "roles": [
          "0x3",
          "0x4",
          "0x5"
        ],
        "objectClass": "user",
        "id": "user_00001"
      },
      "0x3": {
        "roleName": "ROLE_ADMIN",
        "objectClass": "role",
        "id": "role_00001"
      },
      "0x4": {
        "roleName": "ROLE_STUDENT",
        "objectClass": "role",
        "id": "role_00002"
      },
      "0x5": {
        "roleName": "ROLE_DOCENT",
        "objectClass": "role",
        "id": "role_00003"
      }
    }
  ]
  </code></pre>