Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi all,
I have recently set-up an external web server using Laragon and am having some difficulties in setting up the connection to Qlik Sense.
It is currently throwing up the following error message:
This is the config code I have in the JS file.
var config = {
host: "myhostname",
prefix: "/",
port: 443,
isSecure: true,
rejectUnauthorized: false
};
Would appreciate any assistance in resolving this issue!
Cheers,
Joel
Which version of Qlik Sense are you using?
After our team upgraded to the 2.1.1.0 we saw behavior differences in the way our JS config object need to be configured.
-Michael
Hi Michael,
I just upgraded to Qlik Sense 2.1.1 and the connection has started working. However, my extension objects are failing to render which seems to have been an issue since 1.0 (Mashup API context).
Have you had any experience in using extensions on an external web server?
FYI - the particular extension I am talking about is the KPI tile on Qlik Branch created by Stefan Walther.
Cheers,
Joel
Hey,
Ye, we run several extensions through the Capabilities API on external hosts.
What errors are you getting in the console?
I'm guessing there is at least a 404 on the CSS file and require js has tried to append a .js extension to the file name.
Sent from my Windows Phone
Hi all again,
Just noted from my errors above that .js seems to be added to the extension files. Is there anyway to stop this from happening?
I have looked at this thread Qlik sense extension in mashup on external server but am not sure on how to resolve.
Would appreciate any assistance!
Cheers,
Joel
Yes, the requirejs text plugin will fail cross domain.
Try adding this to your mashup as it will force the text plugin to fetch resources without a <script> tag
requirejs.config({
config: {
text: {
useXhr: function (url, protocol, hostname, port) {
return true;
}
}
}
});
Hello Joel,
My company is exploring an embedded solution--using Qlik within our product.
I saw in your thread:
https://community.qlik.com/thread/184901
That you also had a font issue that you were able to overcome. Would you please chime into this thread below. I've tried multiple workaround without success, so perhaps I've missed a step.
https://community.qlik.com/message/883917
Did you do Workaround #3?
thank you!
Michael
Hi Alexander,
I have incorporated your code like this:
require.config( {
baseUrl: ( config.isSecure ? "https://" : "http://" ) + config.host + (config.port ? ":" + config.port: "") + config.prefix + "resources",
config: {
text: {
useXhr: function (url, protocol, hostname, port) {
return true;
}
}
}
});
However, I am getting a bunch of Access Control Allow Origin header errors. As per your advice on this thread Re: Sense mashup: Font fail in IE I have added "Access-Control-Allow-Origin: *" to the QMC proxy settings.
Cheers,
Joel
Having a closer look at the network tab in Chrome Developer I can see that the response header for Access-Control-Allow-Origin is not * but rather the host name of my Qlik Server.
However, as per my previous post, I have already altered the proxy settings in Qlik QMC - is there some step that I am missing here?
Thanks in advance!
Cheers,
Joel
Hi Joel,
I have the same issue as yours. How did you resolved it? Thanks in advance!