title: POST Form Data Cross Domain with CORS
body: <p>This is my simple AJAX post request using Jquery (I'm trying to upload directly to an Amazon S3 Bucket):</p>
  
  <pre><code>var xhr = new XMLHttpRequest();
  xhr.open($("#FORM_ID").attr("method"), $("#FORM_ID").attr("action"), true);
  xhr.onload = function () {
      if (xhr.status === 200) {
          data=xhr.response;
          alert(data);
      } else {
          alert('error');
      }
      return false;
  };
  xhr.send(formData);
  </code></pre>
  
  <p>However it does not work cross domain.  I understand I need to use CORS, which I'm not familiar with.  I've been scouring the INternet for the past few hours looking for a simple solution.  I've run across several that I've tried to implement, to know avail.  Does anyone know how to replace my code above with an example that will work cross domain? </p>
  
  <p>Thanks!</p>