Do not hardcode the domain; no longer needed since Varnish directs for us.
authorSteinar H. Gunderson <sgunderson@bigfoot.com>
Thu, 20 Nov 2014 19:36:46 +0000 (20:36 +0100)
committerSteinar H. Gunderson <sgunderson@bigfoot.com>
Thu, 20 Nov 2014 19:36:46 +0000 (20:36 +0100)
www/js/remoteglot.js
www/serve-analysis.js

index d75b3fc..074a474 100644 (file)
@@ -100,8 +100,7 @@ var get_unique = function() {
 
 var request_update = function() {
        $.ajax({
-               url: "http://analysis.sesse.net/analysis.pl?ims=" + ims + "&unique=" + unique
-               //url: "http://analysis.sesse.net:5000/analysis.pl?ims=" + ims + "&unique=" + unique
+               url: "/analysis.pl?ims=" + ims + "&unique=" + unique
        }).done(function(data, textstatus, xhr) {
                ims = xhr.getResponseHeader('X-Remoteglot-Last-Modified');
                var num_viewers = xhr.getResponseHeader('X-Remoteglot-Num-Viewers');
index 868363d..100cd4a 100644 (file)
@@ -108,7 +108,6 @@ var send_json = function(response, accept_gzip, num_viewers) {
                'Content-Type': 'text/json',
                'X-Remoteglot-Last-Modified': json_last_modified,
                'X-Remoteglot-Num-Viewers': num_viewers,
-               'Access-Control-Allow-Origin': 'http://analysis.sesse.net',
                'Access-Control-Expose-Headers': 'X-Remoteglot-Last-Modified, X-Remoteglot-Num-Viewers',
                'Expires': 'Mon, 01 Jan 1970 00:00:00 UTC',
                'Vary': 'Accept-Encoding',