title: Testing with JEST and nock causing 'Cross origin null forbidden'
body: <p>I'm trying to test my service with JEST and mocking endpoint with nock. Service looks like this</p>
  
  <pre><code>export async function get(id) {
      const params = {
        mode: 'cors',
        headers: {
          'Accept': 'application/json',
          'Content-Type': 'application/json'
        }
      };
  
      let response = await fetch(`{$API}/projects/${id}`, params);
  
      return response.json();
  }
  </code></pre>
  
  <p>Test:</p>
  
  <pre><code>import { 
    get 
  } from './project';
  import nock from 'nock';
  const fetchNockProject = nock($API)
                            .get('/projects/1')
                            .reply('200', {});
  
        const data = await get(1);
  
        expect(data).resolves.toEqual(project);
  </code></pre>
  
  <p>When I run the test I get error:</p>
  
  <p><em>console.error node_modules/jsdom/lib/jsdom/virtual-console.js:29
        Error: Cross origin null forbidden</em></p>
  
  <p><em>TypeError: Network request failed</em></p>
  
  <p>Any idea why virtual-console is throwing this as this is only service. </p>