From e9e7ddf9b11f73e01925541bd6a534d5abaa7548 Mon Sep 17 00:00:00 2001 From: manzerbredes Date: Fri, 5 Feb 2016 20:52:13 +0100 Subject: [PATCH] Make relative path for http request --- client/js/requests/identity.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/js/requests/identity.js b/client/js/requests/identity.js index 7a08714..d34af53 100644 --- a/client/js/requests/identity.js +++ b/client/js/requests/identity.js @@ -9,7 +9,7 @@ identity.requestParser = {}; // Parser part identity.request.login=function($http,username, password,projectname){ var requestResultObject={}; - return $http.post('http://localhost.istic-openstack/server/index.php', + return $http.post('../server/index.php', $.param({"task" : "Authenticate", "user" : username, "password" : password, "project" : projectname}), {headers: {'Content-Type': 'application/x-www-form-urlencoded; charset=UTF-8'}}); };