Qlik Community

New to Qlik Sense

Discussion board where members can get started with Qlik Sense.

shivanandk
Contributor II

Mashup and Custom Extension

Hi All,

I am looking for step by step instruction on configuring custom extension and using them in Mashup using Visual Studio.

I have installed the custom extension sense-UI field on the Qlik Sense server, and able to use in the hub in the app.

Inline image 2

When I try to use the customer extension in MVC project in Visual Studio(steps as per Qlik help website), I see the following display of Invalid visualization. I researched in community and  Qlik help but could not find any good answer for the issue.

Inline image 1

I would appreciate any help on the step.

Thank you in advance,

SK

6 Replies
s29124141
Contributor II

Re: Mashup and Custom Extension

This is an issue with CORS enabled browsers.

Issue :- CORS is not enabled on custom extensions, hence Preflight request from javascript (HTTP OPTIONS to https://hostname/qrs/extension/schema?xrfkey=xrfkey) does not return "Access-Control-Allow-Origin" response header. So the access to custom extensions is blocked.

Proof Below :-

Added response header "Access-Control-Allow-Origin = * " to the preflight request and below is the custom extension rendered without any issue.

Support ticket to Qlik to enable CORS, or allow access to the request origin may solve the issue.

Mashup.png

Without "Access-Control-Allow-Origin" response header, custom extension will not be shown.

DataConnectoins.png

Highlighted
oknotsen
Honored Contributor III

Re: Mashup and Custom Extension

Please add the images to your post or host them in a location that is not forbidden to open.

Thank you,

Qlik Community Team

May you live in interesting times!
s29124141
Contributor II

Re: Mashup and Custom Extension

shivanandk‌ We can add additional response headers to Virtual Proxy using below advanced settings.

ResponseHeaders.PNG

Please mark this reply as "Correct"/"Helpful" if this resolves your issue.

shivanandk
Contributor II

Re: Mashup and Custom Extension

Thanks Praveena. It worked ! Appreciate your help

andresilva
New Contributor III

Re: Mashup and Custom Extension

Hi Praveena,

Where can I find the virtual proxy settings?

Thank you,

André Silva

s29124141
Contributor II

Re: Mashup and Custom Extension

Hi andresilva‌ , you should be able to see that in Qlik management console -> Virtual Proxies -> Select your virtual proxy -> Edit

Community Browser