This DOES NOT work: the error message in the JavaScript console is:
XMLHttpRequest cannot load http://sp-mkc-sansa.indexdata.com:8080/service-proxy/?command=auth&action=check,login&username=orex&password=orexmkc. No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://x.example.indexdata.com' is therefore not allowed access.
I think this must be because of the mod_perl magic on
mkws.indexdata.com, which I'd all but forgotten about. From
mkws/tools/apache2/mkws-live:
PerlOptions +Parent
PerlSwitches -I/home/indexdata/mkws/tools/mod_perl
<Location /service-proxy>
PerlOutputFilterHandler MyApache2::SetACAO
</Location>
<script type="text/javascript">
var mkws_config = { service_proxy_auth:
"//mkws.indexdata.com/service-proxy/?command=auth&action=check,login&username=orex&password=orexmkc"
+// "//sp-mkc.indexdata.com/service-proxy/?command=auth&action=check,login&username=orex&password=orexmkc"
};
</script>
<script type="text/javascript" src="//code.jquery.com/jquery-1.10.0.min.js"></script>