Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi ,
i am trying to connect qlik cloud app with generated api key. My post man request is successful.
public connect = async () => {
const { host, appId, webIntegrationId } = configuration;
let url = `wss://${host}/app/${appId}`
console.log(url);
// const enigmaGlobal = await enigma
// .create({
// schema,
// url,
// })
// .open();
// return enigmaGlobal.openDoc(configuration.appId);
const config = {
schema,
url: url,
createSocket: (url:any) => new WebSocket(url),
};
const session = enigma.create(config);
session.open();
}
Question:
1. How do i pass api key here, websocket doesn't support any auth headers?
2. Connection failed with websocket.
Hi @qlik_helo please refer to the articles below.
As your websocket should be constructed similar to this
/app/${appId}?qlik-web-integration-id=${webIntegrationId}&qlik-csrf-token=${csrfToken}`;
Qlik Saas blocking websocket connections from origins not the tenant
Build-a-simple-web-app
Hope this helps.
Hi @qlik_helo please refer to the articles below.
As your websocket should be constructed similar to this
/app/${appId}?qlik-web-integration-id=${webIntegrationId}&qlik-csrf-token=${csrfToken}`;
Qlik Saas blocking websocket connections from origins not the tenant
Build-a-simple-web-app
Hope this helps.