Skip to main content

Qlik Sense: Response to preflight request doesn't pass access control check error

No ratings
cancel
Showing results for 
Search instead for 
Did you mean: 
Sonja_Bauernfeind
Digital Support
Digital Support

Qlik Sense: Response to preflight request doesn't pass access control check error

Last Update:

May 7, 2021 3:02:33 PM

Updated By:

Andre_Sostizzo

Created date:

Mar 6, 2019 11:08:05 AM


When integrating Qlik Sense with a website, you see the following CORS error:
 

Response to preflight request doesn't pass access control check: It does not have a HTTP Ok status.

 
The result is that Qlik Sense’s APIs will fail, and you may see 404 not found messages in web debugging tools even though Access-Control-Allow-Origin settings are correct.

Environment:

 

Cause:


If an additional CSRF protection is enabled in a third-party library that is running on top of Qlik Sense, and there is an issue with its configuration, you may get the before mentioned error. You can test if this is the case by running Chrome without web security enabled as so:
 

C:\Program Files (x86)\Google\Chrome\Application\chrome.exe --user-data-dir="C://Chrome dev session" --disable-web-security

 
If after disabling web security, everything works, then the CSRF protection in the third-party library is responsible.

 

Resolution:


Disable the CSRF protection used by any third-party libraries running on top of the Qlik Sense API.

Labels (3)
Contributors
Version history
Last update:
‎2021-05-07 03:02 PM
Updated by: