I do not understand if there’s an option to pass a custom header for every request made by flexmonster using a CSV/JSON datasource.
For example I need to pass and header ‘auth-token’ with a authentication token.
Is this possible?
Thank you for your question.
Yes, it is possible to pass a custom header for CSV/JSON data sources in Flexmonster.
This is done via the requestHeader parameter in the
Here is a JSFiddle example for illustration.
requestHeader consists of “key”: “value” pairs, where “key” is a header name and “value” is its value.
An important remark is that the
requestHeader is not saved when obtaining the report via
getReport() API calls.
Please let us know if this works.
thanks, it works!