ui.modern.form.[formName].headers.[key]
Background
This option can be used to specify custom HTTP headers for a given template when using the modern UI. When set, Funnelback will send custom HTTP headers in addition to the standard one.
The parameter name must contain the name of the template for which it applies,
and must be suffixed by a string make the key unique:
ui.modern.form.TEMPLATE_NAME.headers.ID
.
The parameter value should be an HTTP header string such as Header-Name: value
.
The colon is used as a separator between the header name, and the value.
A similar parameter is available for
cache templates:
ui.modern.cache.form.TEMPLATE_NAME.headers.ID=...
Setting the key
Set this configuration key in the results page (preferred) or search package configuration.
Use the configuration key editor to add or edit the ui.modern.form.[formName].headers.[key]
key, and set the value. This can be set to any valid String
value.
Examples
If you want to set a Content-Disposition
header as well as a custom X-Powered-By
header
on a template named csv-export.ftl
:
ui.modern.form.csv-export.headers.1=Content-Disposition: attachment; filename=export.csv ui.modern.form.csv-export.headers.2=X-Powered-By: Funnelback enterprise search