title: ajax json post request
body: <p>This may be a really simple problem, I am just way out of my element here...</p>
  
  <p>I have this function <code>GetData()</code>, which is copied and pasted from a working example, that sends a <code>POST</code> request to a server generating a <code>JSON</code> object with random data for CPU, Disk, and CPU Core</p>
  
  <pre><code>function GetData() {
      $.ajaxSetup({ cache: false });
  
      $.ajax({
          type: 'POST',
          url: "http://www.jqueryflottutorial.com/AjaxUpdateChart.aspx",
          dataType: 'json',
          success: update,
          error: function () {
              document.getElementById('log').innerHTML += "error" +"&lt;br /&gt;";
              setTimeout(GetData, updateInterval);
          }
      });
  }
  </code></pre>
  
  <p>However it always receives an error and never goes to success. I can use <code>POSTMAN</code> to post to this URL and I will receive a valid JSON object. I've included all of the applicable libraries. I don't understand what's going on. Any help would be greatly appreciated.</p>