From: Steinar H. Gunderson Date: Thu, 20 Nov 2014 19:36:46 +0000 (+0100) Subject: Do not hardcode the domain; no longer needed since Varnish directs for us. X-Git-Url: https://git.sesse.net/?p=remoteglot;a=commitdiff_plain;h=edec6246eb5958f6b547bf7bb7fe30d7e1aa9bcf Do not hardcode the domain; no longer needed since Varnish directs for us. --- diff --git a/www/js/remoteglot.js b/www/js/remoteglot.js index d75b3fc..074a474 100644 --- a/www/js/remoteglot.js +++ b/www/js/remoteglot.js @@ -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'); diff --git a/www/serve-analysis.js b/www/serve-analysis.js index 868363d..100cd4a 100644 --- a/www/serve-analysis.js +++ b/www/serve-analysis.js @@ -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',