title: JQuery / AJAX: Cross-Origin Request Blocked
body: <p>I have the following script (simplfied) that grabs some data from a local php file:</p>
  
  <pre><code>$(document).ready(function(){
  
    var current_date = "x=y";
  
    $.ajax
    ({ 
      url: 'work/get_cal.php',
      type: 'post',
      data : current_date,
      async: false,
      success: function(result)
      {
        alert('never gets this far');
      }
    });
  
  });
  </code></pre>
  
  <p>However I get a cross domain error, even though everything is on the same server.  Has anyone had this issue before?</p>
  
  <pre><code>Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at http://www.mywebsite.co.uk/work/get_cal.php. (Reason: CORS header 'Access-Control-Allow-Origin' missing).
  </code></pre>