title: Cross Origin Issue: sending XML POST to localhost
body: <p>I am new to jquery and javascript.</p>
  
  <p>I have a server listening at localhost:8080. I am trying to make a login page that sends username and password. </p>
  
  <pre><code>function check_log(form)/*function to check userid &amp; password*/
  {
      $.post("localhost:8080",
      {
          username: form.username.value,
          submit: "Login"
      },
      function (data, status){
          // Do things
      });
  }
  </code></pre>
  
  <p>The error message is, "cross origin requests are only supported for http". My url is file:///Users/.../login.html. I understand that this is wrong according to the origin policy, but how do I correctly do this?</p>
  
  <p>Thank you.</p>