Question: Is the following code sufficient for the purposes of XHRing a remote server? The only thing changed from normal XHR code is that I put the full server URL into the URL parameter of the open method of the XHR object. I'm not sure if that's enough? It didn't work; so I'm not sure what's missing.

```
<script type="text/javascript">
function loadXMLDoc()
{
var xmlhttp;
if (window.XMLHttpRequest)
  {// code for IE7+, Firefox, Chrome, Opera, Safari
  xmlhttp=new XMLHttpRequest();
  }
else
  {// code for IE6, IE5
  xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
  }
xmlhttp.onreadystatechange=function()
  {
  if (xmlhttp.readyState==4 && xmlhttp.status==200)
    {
    document.getElementById("myDiv").innerHTML=xmlhttp.responseText;
    }
  }
xmlhttp.open("GET","http://insertURLofRemoteServerHere.com?parameter1=true",true);
xmlhttp.send();
}
</script>

```

Answer: 
I spend a couple of weeks on this and came to the conclusion that the git app on mac uses the https remote repository url but when using the term you need the ssh url. To fix this I clicked the settings tab in the github app then pasted in the ssh url from the github site for my repo.
In my case the user did not have appropriate permissions. After I used the user with proper permissions the error vanished.