title: jQuery Ajax returning 404 when method = post
body: <p>So I have an ajax script that runs, it looks like this:</p>
  
  <pre><code>            jQuery.ajax({
                  url: 'http://localhost/?page_id=104256',
                  type: 'POST',
                  data: { name : 'name2' },
                  success: function (data) {
                      alert(data);
                  },
                  error: function(xhr, desc, err) {
                      console.log(xhr);
                      console.log("Details0: " + desc + "\nError:" + err);
                  },
              }); 
  </code></pre>
  
  <p>This runs fine but returns a 404 from the page set as the 'url'
  If I remove 'type: post' </p>