Skip to main content

Qlik Sense Mashup Failed To Render Due To XMLHttpRequest "Cross Origin Requests" Error

No ratings
cancel
Showing results for 
Search instead for 
Did you mean: 
ToniKautto
Employee
Employee

Qlik Sense Mashup Failed To Render Due To XMLHttpRequest "Cross Origin Requests" Error

Last Update:

Feb 23, 2021 4:37:18 AM

Updated By:

Sonja_Bauernfeind

Created date:

Jun 10, 2016 1:48:15 AM

A Qlik Sense mashup does not render as expected.

Web traffic trace or browser's developer tools show an XMLHttpRequest Cross Origin request error, for example as below.  

 

Environment: 

Qlik Sense Enterprise on Windows



URL reference in the error message has an invalid syntax, where the port number is not followed by a slash. 

xmlhttprequest cannot load.png

This can be caused by the config.prefix not being properly defined in the mashup's JavaScript file. For example, the config.prefix is defined as an empty string. 

var config = {
    host: "myqliksense.serverdomain.com",
    prefix: "",
    port: window.location.port,
    isSecure: window.location.protocol === "https:"
};

The config.prefix must be defined to match the virtual proxy prefix value defined in Qlik Sense Management Console (QMC). If the virtual proxy prefix is blank in QMC, the config.prefix must be defined with a slash.

var config = {
    host: "myqliksense.serverdomain.com",
    prefix: "/",
    port: window.location.port,
    isSecure: window.location.protocol === "https:"
};

 

For additional troubleshooting steps and similar issues/solutions, see Related Content. 

 

Related Content

Missing SameSite attribute blocks requests in Chrome 80 and later 
Qlik Sense Mashup Fails To Render When Deployed To Webserver

Contributors
Version history
Last update:
‎2021-02-23 04:37 AM
Updated by: