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.")"
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:
Using a file editing tool such as Notepad++ as an administrator, navigate to %ProgramData%\Qlik\Gateway
Open restconnector_allowed_urls.txt
Enter the URLs you want to allow, with a line break between them (enter * to allow any URL)
Save the file
Restart the Qlik Data Gateway - Direct Access service in the Windows Services applet