Skip to main content

How to: Redirect HTTP to HTTPS in Qlik Sense

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

How to: Redirect HTTP to HTTPS in Qlik Sense

Last Update:

Sep 27, 2022 8:54:59 PM

Updated By:


Created date:

Aug 24, 2017 7:22:18 AM

Qlik Sense can be configured to allow both HTTP and HTTPS traffic. In some scenarios, an administrator prefers to only enable HTTPS traffic and redirect users who attempt to access Qlik Sense by HTTP to HTTPS.

Most web servers like IIS, Apache, or nginx set up as reverse proxies in front of Qlik Sense can accomplish a redirect from HTTP to HTTPS. Accomplishing the redirect from HTTP to HTTPS is the preferred method. The code below is provided as is, and is not guaranteed to continue working in case Qlik upgrades the node.js version used in the Qlik Sense base product.

It is recommended to use whichever product the organization has institutional knowledge about since support will need to be provided from those resources.

For demonstration purposes in the Qlik Sense product, the administrator can use a custom NodeJS module which is launched by Qlik Sense to accomplish this task.

! Qlik Support's scope does not include the debugging or writing of custom code for customers. For assistance on custom solutions, please contact our consulting services/professional services, or engage with our active community of partners and customers. The supplied example code is provided for demonstration purposes. No Support or maintenance is implied or provided. Further customization is expected to be necessary and it is the responsibility of the end administrator to test and implement an appropriate rule for their specific use case.

! Redirecting from HTTP to HTTPS does not automatically guarantee or equal HSTS compliance. For details on HSTS compliance, see HTTP Strict Transport Security (HSTS) in Qlik Sense.

! Changes made to the configuration files will be reverted back to default upon product upgrade. 


1. Create a folder named route2https in C:\Program Files\Qlik\Sense\ServiceDispatcher\Node\
2. Create server.js file in the route2https folder, paste this code in to it and save:

// Redirect from http port 80 to https
var http = require('http');
http.createServer(function (req, res) {
   res.writeHead(301, { "Location": "https://" + req.headers['host'] + req.url });

3. Edit C:\Program Files\Qlik\Sense\ServiceDispatcher\services.conf file and paste the following code into it at the end:


4. Restart the Qlik Sense Service Dispatcher service

These steps need to be carried out on each Proxy node that is expected to redirect from HTTP to HTTPS.

* Courtesy of Nick Akincilar in Qlik Pre-Sales.

For an additional example see the Qlik Community: Qlik Sense redirect HTTP to HTTPS

Labels (1)
Partner - Specialist
Partner - Specialist

Great, thanks!

Specialist III
Specialist III

Hi @Andre_Sostizzo is this article intended to give us an option for not use an SSL certificate?

Digital Support
Digital Support

Hello, @QFabian!

Can you clarify your question for me and give me an overview over what you are trying to achieve?

All the best,

Contributor III
Contributor III

Hi Followed the instruction in

adding Additional response headers but still we are getting 'HSTS missing from HTTP' vulnerability. 

Do I need to follow the steps mentioned in this article also?

Contributor III
Contributor III

Hi @Sonja_Bauernfeind  and  @Andre_Sostizzo 

Can you please respond to my question above whether I need to follow these steps also along with other items in other article?

Digital Support
Digital Support

Hello @Rajashekar 

The steps in this article should be sufficient. Please post about your issue in detail in the appropriate forum: Deployment and Management.

There, our active support agents and your Qlik peers will be able to more effectively assist you.

All the best,

Version history
Last update:
‎2022-09-27 08:54 PM
Updated by: