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: 
vlian
Partner - Contributor II
Partner - Contributor II

Qlik-embed javascript source - to not use the CDN

Hi, as per documentation, to use qlik-embed, we included the following javascript snippet, which works fine.

  <script
    crossorigin="anonymous"
    type="application/javascript"
    data-auth-type="windowscookie"
  ></script>
 
Our question is the source of this script comes from an external domain. Our company and clients have strict policies around the usage of scripts, which means this script can be blocked.
 
I seek your advice on how the best approach to resolve this. 
- Can this script be hosted in our on-premise qilk server? We are use Qlik Sense Enterprise Client Managed May 2024.
- Or can it be downloaded and referenced by the project locally? (Then the question is how should we receive updates?)
Labels (3)
1 Solution

Accepted Solutions
rankassovitz
Employee
Employee

@vlian ,

As Alex has noted, you could use npm to install the package "@qlik/embed-wen-components".

Then replace:
src="https://cdn.jsdelivr.net/npm/@qlik/embed-web-components@1/dist/index.min.js"

with:
src="/node_modules/@qlik/embed-web-components/dist/index.js"
 
Should work the same.

View solution in original post

2 Replies
alex_colombo
Employee
Employee

Hey @vlian , you can host qlik-embed code locally into your project using npm. Similar to all npm libraries, you have to manually update the code. About hosting, dont' have experience on this.

rankassovitz
Employee
Employee

@vlian ,

As Alex has noted, you could use npm to install the package "@qlik/embed-wen-components".

Then replace:
src="https://cdn.jsdelivr.net/npm/@qlik/embed-web-components@1/dist/index.min.js"

with:
src="/node_modules/@qlik/embed-web-components/dist/index.js"
 
Should work the same.