Cross origin requests are only supported for HTTP but it's not cross-domain
<p>i'm using this code to make an ajax request:</p>

<pre><code>$("#userBarSignup").click(function(){
    $.get("C:/xampp/htdocs/webname/resources/templates/signup.php",
        {/*params*/},
        function(response){
            $("#signup").html("TEST");
            $("#signup").html(response);
        },
        "html");
</code></pre>

<p>But from the Google Chrome javascript console i keep receiving this error:</p>

<blockquote>
  <p>XMLHttpRequest cannot load
  file:///C:/xampp/htdocs/webname/resources/templates/signup.php. Cross
  origin requests are only supported for HTTP.</p>
</blockquote>

<p>The problem is that the <code>signup.php</code> file is hosted on my local web server that's where all the website is run from so it's not cross-domain.</p>

<p>How can i solve this problem?</p>
