Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Qlik GA: Multivariate Time Series in Qlik Predict: Get Details

Qlik Data Gateway Rest API Connection returns error URL is not allowed. Please check your allowed urls in configuration file

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

Qlik Data Gateway Rest API Connection returns error URL is not allowed. Please check your allowed urls in configuration file

Last Update:

Feb 26, 2025 9:28:03 AM

Updated By:

Sonja_Bauernfeind

Created date:

Feb 26, 2025 9:28:03 AM

Connect to a REST API connection using the Qlik Data Data Gateway Rest API functionality may fail with: 

Status(StatusCode="Internal", Detail="Command testconnection returned non-success: URL is not allowed. Please check your allowed urls in configuration file.")"

please check your allowed urls in configuration file.png

Environment

  • Qlik Data Gateway

 

Resolution

Enter the URL you want to use in the %ProgramData%\Qlik\Gateway\restconnector_allowed_urls.txt file. You'll need to use an administrator-level instance of a file editing tool (Notepad++), and restart the Qlik Data Gateway - Direct Access service in the Windows Services applet. 

The configuration file to enter allowed URLs is restconnector_allowed_urls.txt and is located in %ProgramData%\Qlik\Gateway. To update this file, perform the following steps:

  1. Using a file editing tool such as Notepad++ as an administrator, navigate to %ProgramData%\Qlik\Gateway
  2. Open restconnector_allowed_urls.txt
  3. Enter the URLs you want to allow, with a line break between them (enter * to allow any URL)
  4. Save the file
  5. Restart the Qlik Data Gateway - Direct Access service in the Windows Services applet

Refer to Qlik Cloud Help entry Preparing a list of URLs that Direct Access gateway can access for more information.

 

Cause

REST connection URLs are required to be entered into the restconnector_allowed_urls.txt file.

Version history
Last update:
‎2025-02-26 09:28 AM
Updated by: