Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
andreadl_deepcube
Contributor II
Contributor II

Service worker execution blocked when using qlik-embed with qlik enterprise on Windows

Hello i'm trying to embed qlik apps in my react app.
The version of Qlik in use is Qlik Sense May 2024 Patch 5.
I want to use a virtual proxy with ticket authentication.

The js assets loads after being redirected to internal_windows_authentication/?target_id=...

The problem is that the browser blocks the execution of service worker with this error:
Uncaught (in promise) SecurityError: Failed to register a ServiceWorker for scope ('https://{sense_host}/qlik-embed/') with script ('https://{sense_host}/qlik-embed/static-assets-auth-service-worker.js'): The script resource is behind a redirect, which is disallowed.

I noticed that even if i specify data-login-uri to a specific virtual proxy in the script it seems that the proxy in use is Central Proxy (Default), the cookie session name and the access control response header applied belongs to the central and not to the one defined in data-login-uri  

    <script
            crossorigin="anonymous"
            type="application/javascript"
            data-host="{sense_host}"
            data-login-uri="https://{sens_host}/msvil"
            data-cross-site-cookies="true"
    ></script>

What i'm doing wrong ?
Labels (4)
13 Replies
andrefpc
Partner - Creator II
Partner - Creator II

Hi @andreadl_deepcube 

Sorry to bother you again with this but...still no solution from Qlik?

 

Thanks.

andreadl_deepcube
Contributor II
Contributor II
Author

Yes, the customer support said that this a known issue, qlik-embed doesn't work with non-default virtual proxies.
It works only with Central Proxy (default).
I ended up using an iframe that works with non-default virtual proxies, i hope this will work in the future so i will update my codebase, but i don't really believe it.

Sebastien_A
Support
Support

Hi @andreadl_deepcube and @andrefpc 

A fix for this issue has been released with Qlik Sense May 2024 patch 14 and Qlik Sense November 2024 patch 5.

The reference in our release notes is QB-31060.

In addition, please note that our documentation about connecting qlik-embed to Qlik Sense Enterprise Client-managed has also been updated:

https://qlik.dev/embed/qlik-embed/authenticate/connect-qlik-embed/#connecting-to-qlik-sense-enterpri...

 

 

 

 
amj
Contributor II
Contributor II

I'm having the same issue and it seems that is caused by the connection to the service worker that is trying to reach the files without adding the virtual proxy to the url getting an http 400 as response.