Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
We have a .net app which installs the qlik sense silently to the customer pc. Here we would like to update the "Additional Response Headers" under "Virtual Proxy" as shown in below URL while installing the app. Please suggest how to achieve it.
HTTP Strict Transport Security (HSTS) in Qlik Sens... - Qlik Community - 1711505
I believe you use the QRS API and set the "additionalResponseHeaders" property in the VirtualProxyConfig.
-Rob
Wrong Forum
I believe you use the QRS API and set the "additionalResponseHeaders" property in the VirtualProxyConfig.
-Rob
Hi Rob,
Thanks for your reply.
How to call that api by passing the values to additionalResponseHeaders property?
Actually l like to update the additional response headers by the below value
Strict-Transport-Security: max-age=31536000;includeSubDomains;Preload
Is it like /qrs/virtualproxyconfig/{id}?additionalResponseHeaders=Strict-Transport-Security: max-age=31536000; includeSubDomains; preload
Thanks in Advance.
Hi Rob,
Thanks for your support.
Finally I got the solution as shown below.
string path = $"/qrs/virtualproxyconfig/{proxy.id}";
string body = JsonConvert.SerializeObject(proxy);
string bodyWithAdditionalResponseHeaders = body.Replace("\"additionalResponseHeaders\":\"\"", "\"additionalResponseHeaders\":\"Strict-Transport-Security: max-age=31536000;includeSubDomains;Preloads\"");