How to identify which server settings would block a Same-origin policy proxy?

,

Hello,
I have two servers: One running on Amazon through AWS and another that is just a basic Apache server running locally on my machine. I created a basic HTML page that uses AJAX and a proxy script to get around the same-origin policy. The proxy script I am using is the Simple PHP Proxy by Ben Alman (here). On my Amazon Web Server, it works fine and any XML I request from a non-local domain comes in. However, when I host the exact same pages on my local Apache server, the XML does not appear and the XMLHttpRequest object’s responseText returns blank.

I have no idea where to even begin looking for what kind of server settings would be different between the two web servers that would cause the proxy to work on one and not on the other. There are not any PHP errors logged in my Apache server that point me in the right direction. Could anyone help me find what specific differences there would be between the servers that would allow the proxy to work on one and not the other?

Thanks so much!

P.S. in case this for some reason helps, the Javascript where I call the proxy script looks like this:

function makeAsynchRequest(url, callbackFunction)
     {
          xmlhttp=new XMLHttpRequest();
         xmlhttp.onreadystatechange=callbackFunction;
         xmlhttp.open("GET","php/proxy2.php?mode=native&url="+ encodeURIComponent(url), true);
         xmlhttp.send();
     }
     function aSimpleCallbackFunc(){
             if (this.readyState==4 && this.status==200){
               console.log(this.responseText);
             }
     }

This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.