this.UseCookie = function (userCookie) {
console.log(userCookie);
requestDefaultParams.headers.Cookie = userCookie;
delete requestDefaults.headers['X-Qlik-User']; **This needs to be requestDefaultParams.headers***
requestDefaults = request.defaults(requestDefaultParams);
};
this.UpdateVirtualProxyPrefix = function (vProxyPrefix) {
basePath = generateBasePath(hostname, portNumber, vProxyPrefix); **When using a virtual proxy prefix the portnumber is not used**
}
return (newHost.startsWith('http') ? newHost : "https://" + newHost) +
(port == "" ? "" : newVirtualProxy != "" ? "" : ":" + port) +
(newVirtualProxy == "" ? "" : "/" + newVirtualProxy) + **An extra slash is being added here because it is added earlier**
"/qrs";