跨域ajax,包括

In index.html on my server, I use ajax to load the content of file1.php on my server.

In file1.php, the Facebook API is used through the HybridAuth Social Signon.

If I just run file1.php, it works fine. However, when running index.html, I run into the problem that the cross-domain AJAX request is not allowed, because the Facebook API is used.

I didn't think this was cross-domain, since the file I am loading is on the same server. Is there a way to fix this, because most fixes I find around includes changing the response header, which I can't persuade Facebook to do.