title: Response body is null(Fetch request)
body: <p>I am trying to make a request to the bank API, and get its branches in json format.</p>
  
  <p>But I get an empty response. 
  <a href="https://i.stack.imgur.com/N3kYb.png" rel="nofollow noreferrer">Response</a></p>
  
  <p>Although, if I insert the link into the browser, I will get the json format.</p>
  
  <p><code>https://api.privatbank.ua/p24api/pboffice?json&amp;city=Ивано-Франковск</code></p>
  
  <p>This is how the request works <a href="https://i.stack.imgur.com/d0533.png" rel="nofollow noreferrer">Results</a></p>
  
  <p>Errors <a href="https://i.stack.imgur.com/ecdzR.png" rel="nofollow noreferrer">Error</a></p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code>var address = document.getElementById('address').value;
  
  function postData(url = '', data = {}) {
    console.log(url);
    
      return fetch(url, {
          method: 'GET', 
          mode: 'no-cors', 
          headers: {
            "Accept": "application/json",
            'Access-Control-Allow-Origin':'*'
        }
          
      }).then(response =&gt; {
        console.log(response);
        if (response.ok)
        {
          response.json()
        }
        else {
          throw new Error('Something went wrong');
        }
      }); 
  }
  
  postData(`https://api.privatbank.ua/p24api/pboffice?json&amp;city=${address}`, {})
    .then(data =&gt; console.log(JSON.stringify(data))) 
    .catch(error =&gt; console.error(error));</code></pre>
  </div>
  </div>
  </p>
  
  <p>`</p>