$.post() error Origin null is not allowed by Access-Control-Allow-Origin
<p>This code:</p>

<pre><code>$(function(){
     $.get("test.html", function(data){
      $(".msgs").text(data)
     })
})
</code></pre>

<p>Gives me this console error:</p>

<pre><code>XMLHttpRequest cannot load file:///C:/wamp/www/JQuery%20lab/check.php?username=&amp;password=.
Origin null is not allowed by Access-Control-Allow-Origin
</code></pre>

<p>What can I do to fix this error?</p>
