From: KIRAN KASHALKAR Date: Sun, 4 Dec 2016 09:04:31 +0000 (-0500) Subject: RIFT-15134: launchpad has wrong hostname for account URL when using floatingip/NAT... X-Git-Tag: v1.0.2~1 X-Git-Url: https://osm.etsi.org/gitweb/?p=osm%2FUI.git;a=commitdiff_plain;h=3b9e0f19cbbf4079bcaa74456e04a8043f94a83a;hp=46087a0f6f9b555cace872cd79d8c219c4e3732c RIFT-15134: launchpad has wrong hostname for account URL when using floatingip/NAT to access launchpad Signed-off-by: KIRAN KASHALKAR --- diff --git a/skyquake/plugins/accounts/src/account/accountSource.js b/skyquake/plugins/accounts/src/account/accountSource.js index c0fd36b3d..d84b06da5 100644 --- a/skyquake/plugins/accounts/src/account/accountSource.js +++ b/skyquake/plugins/accounts/src/account/accountSource.js @@ -38,11 +38,11 @@ module.exports = function(Alt) { return resolve(false); } $.ajax({ - url: '//' + window.location.hostname + ':' + NODE_PORT + '/socket-polling?api_server=' + API_SERVER , + url: '/socket-polling?api_server=' + API_SERVER , type: 'POST', beforeSend: Utils.addAuthorizationStub, data: { - url:window.location.protocol + '//' + window.location.host + '/accounts/all?api_server=' + API_SERVER + url: '/accounts/all?api_server=' + API_SERVER }, success: function(data, textStatus, jqXHR) { Utils.checkAndResolveSocketRequest(data, resolve, reject);