Skip to main content

How to add additional response headers in Qlik Sense

100% helpful (1/1)
cancel
Showing results for 
Search instead for 
Did you mean: 
Andre_Sostizzo
Digital Support
Digital Support

How to add additional response headers in Qlik Sense

Last Update:

Mar 4, 2024 6:46:41 AM

Updated By:

Sonja_Bauernfeind

Created date:

Oct 20, 2017 11:32:41 AM

In Qlik Sense, an administrator may want to add additional HTTP headers to the Qlik Sense Proxy. This article will outline how to add those additional HTTP headers.

An example is the commonly deployed X-Frame-Options to prevent Clickjacking, or headers meant to prevent cross-site-scripting.

 

How to add additional headers

  1. Inspect the Response Headers in the Hub for a specific Virtual Proxy to see what values are already present:

    In this example, we are using Chrome's Developer Tools. All browsers include Developer Tools but Chrome's tends to be the most robust. You can access the browser's Developer's Tools by pressing F12. You may need to refresh the page to see a capture. Refer to online documentation for the browser of choice for insight into how to use its Developer Tools.

    custom header.png

  2. Add the additional response headers in the Qlik Sense Management Console:

    1. Open Virtual Proxies 
    2. Click Edit on your Proxy
    3. Open the Advanced options (right hand side)
    4. Locate Additional Response Headers

      Note that the expected format is Header: option1;option2

      If there are multiple headers which need to be added, then each header needs to be on a new line in the expected format:

      add header.png
 
Looking to automate? Review the Qlik Open AI specifications for VirtualProxyConfigadditionalResponseHeaders 
 

Additional considerations

  • Be sure to research additional headers and understand the consequences of adding them to Qlik Sense. Some headers may have a large impact to a deployment; example: https://en.wikipedia.org/wiki/HTTP_Public_Key_Pinning
  • These headers are applied on a per virtual proxy basis. So be sure to apply any needed changes to all relevant virtual proxies.
Labels (1)
Comments
priya2
Partner - Contributor III
Partner - Contributor III

Hi,

Can you please help in adding the content security policy header.

rajarl
Contributor II
Contributor II

How to add the Additional Response Headers automatically by system?

I mean in our application - the .net installer is silently installing the qlik sense as part of our application installation and after the successful install we like to update the Additional Response Headers or while installation of qlik sense we like to update the Additional Response Headers. please do the needful

Sonja_Bauernfeind
Digital Support
Digital Support

Hello @rajarl 

I'd recommend posting this question with your requirements (and versions) in the Qlik Sense Deployment forum.

All the best,
Sonja 

rajarl
Contributor II
Contributor II
Sonja_Bauernfeind
Digital Support
Digital Support

Thank you for looping back with this, @rajarl !

All the best,
Sonja 

Contributors
Version history
Last update:
‎2024-03-04 06:46 AM
Updated by: