title: Paraimpu HTTP POST REQUEST
body: <p>I am trying to make a http POST request from my Jquery mobile application(hosted on Amazon S3) to "http://paraimpu.crs4.it/data/new" to insert data into my sensor on the Paraimpu site. This is the request I'm making:</p>
  
  <pre><code>        data = "Test";
          valueToSend = '{"token":"c9d1cee6-da40-4e97-afc8-209045786b04","content-type":"application/json","data":' + data + '}';
          $.ajax({
              url: "http://paraimpu.crs4.it/data/new",
              type: "POST",
              data: valueToSend,
              dataType: "json",
              crossDomain: true,
              contentType:"application/json",
              success: function(){
              alert('Success');
          }
          });
  </code></pre>
  
  <p>I keep getting </p>
  
  <blockquote>
    <p>XMLHttpRequest cannot load <a href="http://paraimpu.crs4.it/data/new" rel="nofollow">http://paraimpu.crs4.it/data/new</a>. Origin
    "http://webappz.s3-website-us-east-1.amazonaws.com" is not allowed by
    Access-Control-Allow-Origin.</p>
  </blockquote>
  
  <p>I know this is because of the cross domain policy, but how can I get around this? The instructions on the paraimpu page are pretty vague and just says:</p>
  
  <blockquote>
    <p>Push new sensor data doing an HTTP POST to:</p>
    
    <p><a href="http://paraimpu.crs4.it/data/new" rel="nofollow">http://paraimpu.crs4.it/data/new</a></p>
    
    <p>with content like: {"token":"c9d1cee6-da40-4e97-afc8-209045786b04",
    "content-type":"text/plain", "data":RAW DATA}</p>
  </blockquote>