title: Fetch throwing error with 302 in componentdidmount react
body: <p>I am having an issue in using the fetch method in the componentDidMount method when an api call is redirecting and returning the response. Initial 302 response is trying to get processed in then method after fetch and throwing a JSON.parse: unexpected end of data at line 1 column 1 of the JSON data. Any suggestion on how I can solve this issue ?</p>
  
  <pre><code>componentDidMount(){
              let config = {
                  method: 'GET',
                  mode: 'no-cors',
                  redirect:'follow',
                  cache: 'default',
                  headers: new Headers({
                      'Content-Type': 'application/json'
                  })
              };
  
           fetch("ACTUAL_URL",config)
           .then(response =&gt; response.text())
           .then( val =&gt; JSON.parse(val))
           .then(response =&gt; {
                      this.setState({val:response.json()})
              })
      }
  </code></pre>
  
  <p>API CALL response
  -302 
  - 200 </p>