use as url the netdata server API url, not the visible document location
Costa Tsaousis committed
May 11, 2016 at 18:39 UTC
441cdc6ad9cbca7d8c6fd103dc5d0f2c25c24ea5
1 file changed
+1
-1
web/dashboard.js
+1
-1
@@ -5510,7 +5510,7 @@
5510
5511
access: function(callback) {
5512
$.ajax({
5513
- url: NETDATA.registry.server + '/api/v1/registry?action=access&machine=' + NETDATA.registry.machine_guid + '&name=' + encodeURIComponent(NETDATA.registry.hostname) + '&url=' + encodeURIComponent(document.location),
5513
+ url: NETDATA.registry.server + '/api/v1/registry?action=access&machine=' + NETDATA.registry.machine_guid + '&name=' + encodeURIComponent(NETDATA.registry.hostname) + '&url=' + encodeURIComponent(NETDATA.serverDefault),
5514
async: true,
5515
cache: false,
5516
xhrFields: { withCredentials: true }