Qlik Community

Qlik Sense Integration, Extensions, & APIs

Discussion board where members can learn more about Integration, Extensions and API’s for Qlik Sense.

brindlogcool
Contributor III

widget usage in Mashups

what are steps to use Widgets in Mashups which is deployed in the external web server(Referring external as a independent web server for Mashups)

I am getting the json CORS error.

Not seeing any solutions or suggestions or documents for the same... Any suggestions...

5 Replies
baz
New Contributor

Re: widget usage in Mashups

Hi.CORS error is usually caused by referencing resouces on external server.

Could you check you extension to see if it is linked to..for example CSS or image on qlik server?

You can either try to use requirejs to load them.

Or turn off CORS checking on your browser.(Easier but not scalable)

http://testingfreak.com/how-to-fix-cross-origin-request-security-cors-error-in-firefox-chrome-and-ie...

brindlogcool
Contributor III

Re: widget usage in Mashups

Thanks for your response.

(a) Mashups are hosted in server A(IIS server for Mashups).

(b) It is referencing the Qlik sense server for widgets,QVF, extensions.

If your question is the widgets/extensions are using any external files in the web. Answer is no.

We cannot change the browser setting.

baz
New Contributor

Re: widget usage in Mashups

Ah I see. For your server A, Qlik sense server is an external server. Therefore referencing anything on Qlik sense server will cause CORS error.

You can try registerExtension ‌method to create the object on the fly. https://help.qlik.com/en-US/sense-developer/3.0/Subsystems/Mashups/Content/Howtos/create-extension-o...‌. Just an alternative solution.

2016-11-18 09_47_21-Graphs.pptx - PowerPoint.png

brindlogcool
Contributor III

Re: widget usage in Mashups

Thanks Wuzhong. Do we have any reference how to register widgets.

baz
New Contributor

Re: widget usage in Mashups

Community Browser