X-Git-Url: https://osm.etsi.org/gitweb/?p=osm%2FUI.git;a=blobdiff_plain;f=skyquake%2Fframework%2Futils%2Futils.js;fp=skyquake%2Fframework%2Futils%2Futils.js;h=e8e9ad1a95360799c13325c10460a37cf6637737;hp=8a54ff338a965fdcd33b8e774649a4d2c1b615fc;hb=6620bca06b9874e68e8bc11ce28b7a6eeda5cc03;hpb=12e305918188d2eb4f3b2eb33e325a02d3866405 diff --git a/skyquake/framework/utils/utils.js b/skyquake/framework/utils/utils.js index 8a54ff338..e8e9ad1a9 100644 --- a/skyquake/framework/utils/utils.js +++ b/skyquake/framework/utils/utils.js @@ -189,7 +189,7 @@ Utils.setAuthentication = function(username, password, cb) { window.sessionStorage.setItem("auth", AuthBase64); self.detectInactivity(); $.ajax({ - url: '//' + window.location.hostname + ':' + NODE_PORT + '/check-auth?api_server=' + API_SERVER, + url: '//' + window.location.hostname + ':' + window.location.port + '/check-auth?api_server=' + API_SERVER, type: 'GET', beforeSend: Utils.addAuthorizationStub, success: function(data) {