title: Postman GET request works but not Ajax CORS
body: <p>I am trying to make an AJAX request to get information of a restAPI.</p>
  
  <p>If I test it with POSTMAN, it works and with Putty too with this code selecting RAW, but not with AJAX due to CORS issues.</p>
  
  <p>This is the code that works on Putty (it returns JSON data):</p>
  
  <pre><code>GET /api/slot/0/io/do HTTP/1.1\r\n
  Host: 172.25.0.208\r\n
  Content-Type: application/json\r\n
  Accept: vdn.dac.v1\r\n
  \r\n
  </code></pre>
  
  <p>This is the jQuery AJAX code:</p>
  
  <pre><code>//Build GET Request URL
  var url = "//" + ipDevice + "/api/slot/" + slot + "/io/do";
  jQuery.support.cors = true;
  //GET Request with HTTP header info
  $.ajax({
      "url": url,
      "method": "GET",
      "headers": {
          "Accept": "vdn.dac.v1",
          "Content-type": "application/json"
      },
      "success": function (response) {
          getPowerStatusSuccess(response);
      },
      "error": function (response) {
          getPowerStatusFail(response);
      }
  });
  </code></pre>
  
  <p>The error I got on browser console (Firefox) is:</p>
  
  <p><img src="https://i.imgur.com/pOSuATa.png" alt="Image"></p>