title: "Error: Cross origin null forbidden" with JSDOM trying to get a json file
body: <p>I'm trying to get the blocked countries for a youtube video by its ID using the API provided by unblockvideos.com as a json file, in a node.js environment. I'm using the same syntax to get youtube video metadata with the youtube API v3 and that is working just fine, so I don't know why this would deliver an error. </p>
  
  <pre><code>var jsdom = require("jsdom");
  const { JSDOM } = jsdom;
  const { window } = new JSDOM();
  const { document } = (new JSDOM('')).window;
  global.document = document;
  var $ = jQuery = require('jquery')(window);
  
  
  $.get('https://api.unblockvideos.com/youtube_restrictions?id=vMHZdfRWF94', function(ubjson) {
  
    //code
  
  });
  </code></pre>
  
  <p>here is my console output: </p>
  
  <p>Error: Cross origin null forbidden
      at dispatchError (/home/nodeworkspace/node_modules/jsdom/lib/jsdom/living/xhr-utils.js:60:19)
      at Object.validCORSHeaders (/home/nodeworkspace/node_modules/jsdom/lib/jsdom/living/xhr-utils.js:72:5)
      at receiveResponse (/home/nodeworkspace/node_modules/jsdom/lib/jsdom/living/xmlhttprequest.js:845:21)
      at Request.client.on.res (/home/nodeworkspace/node_modules/jsdom/lib/jsdom/living/xmlhttprequest.js:677:38)
      at emitOne (events.js:116:13)
      at Request.emit (events.js:211:7)
      at Request.onRequestResponse (/home/nodeworkspace/node_modules/jsdom/node_modules/request/request.js:1066:10)
      at emitOne (events.js:116:13)
      at ClientRequest.emit (events.js:211:7)
      at HTTPParser.parserOnIncomingClient [as onIncoming] (_http_client.js:544:21) undefined</p>