RIFT-15134: launchpad has wrong hostname for account URL when using floatingip/NAT... 55/755/1
authorKIRAN KASHALKAR <kiran.kashalkar@riftio.com>
Sun, 4 Dec 2016 09:04:31 +0000 (04:04 -0500)
committerKIRAN KASHALKAR <kiran.kashalkar@riftio.com>
Sun, 4 Dec 2016 09:05:57 +0000 (04:05 -0500)
Signed-off-by: KIRAN KASHALKAR <kiran.kashalkar@riftio.com>
skyquake/plugins/accounts/src/account/accountSource.js

index c0fd36b..d84b06d 100644 (file)
@@ -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);