Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

Websocket connection failed during handshake - error code: 403

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.

4 Replies
kaanerisen
Creator III
Creator III

Hi Arsalan,

Add your server ip,'localhost' and hostname or others in whitelist (QMC virtualproxy-central)


Untitled.png

Hope it helps...

Anonymous
Not applicable
Author

Hi Kaan,

I tried that option but still see the error.

HostWhiteList.png

kaanerisen
Creator III
Creator III

Hi,

You just need to add 'localhost'. without 'http' or 'https'.

Pls just add 'localhost' and try if it is working.

Anonymous
Not applicable
Author

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');

});

HostWhiteList2.PNG