Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
I get this error when try to connect to any Qlik Sense app. I've looked through other threads with same error but haven't found anything helpful yet.
.js file contains:
var config = {
host: "localhost",
prefix: "/",
port: window.location.port,
isSecure: window.location.protocol === "https:"
};
Thank you for any suggestions.
Hi Arsalan,
Add your server ip,'localhost' and hostname or others in whitelist (QMC virtualproxy-central)
Hope it helps...
Hi Kaan,
I tried that option but still see the error.
Hi,
You just need to add 'localhost'. without 'http' or 'https'.
Pls just add 'localhost' and try if it is working.
I did try putting just "localhost" but no effect. Also, this error comes up when I insert this code (in Red) in my .js file:
var config = {
host: "localhost",
prefix: "/",
port: window.location.port,
isSecure: window.location.protocol === "https:"
};
require.config( {
baseUrl: ( config.isSecure ? "https://" : "http://" ) + config.host + (config.port ? ":" + config.port : "") + config.prefix + "resources"
} );
require(['js/qlik'], function(qlik) {
//if there's any error we catch it here
qlik.setOnError( function ( error ) {
console.log(error);
});
var app = qlik.openApp('c3208cab-95d2-42c6-bb37-587196af3aba', config);
app.getObject(document.getElementById('QSChart'), 'rtAJ');
});