Add commented-out non-proxied version of the SP auth URL.
authorMike Taylor <mike@indexdata.com>
Wed, 2 Jul 2014 16:23:37 +0000 (17:23 +0100)
committerMike Taylor <mike@indexdata.com>
Wed, 2 Jul 2014 16:23:37 +0000 (17:23 +0100)
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>

examples/htdocs/mike.html

index cf9c174..c2b7c2f 100644 (file)
@@ -6,6 +6,7 @@
     <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>