Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
brindlogcool
Creator III
Creator 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
Wuzhong_Zhu
Former Employee
Former Employee

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
Creator III
Creator III
Author

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.

Wuzhong_Zhu
Former Employee
Former Employee

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
Creator III
Creator III
Author

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

Wuzhong_Zhu
Former Employee
Former Employee