Need a special offer?Find out if your project fits.
+

Flexmonster Data Server URL Include Request Header

Answered
dongbeom Kim asked on August 26, 2020

A form using flexmonster data server looks like this:
 
{'type' : 'api', 'url' : 'http://localhost:9500', 'index' : 'sample-index'}
 
In modern times, I currently have a Flexmonster data server connected to aws ALB.
To go to the dataserver through the ALB, you need to add some parameters to the Reqest header.
Is there any way to add it?

1 answer

Public
Illia Yatsyshyn Illia Yatsyshyn Flexmonster August 26, 2020

Hello,
 
Thank you for reaching out to us.
 
Our team wants to draw your attention to the requestHeaders property of the Data Source Object. This property allows adding custom request headers. It consists of "key": "value" pairs, where "key" is a header name, and "value" is its value. Check out a live sample on JSFiddle.
We want to notice that requestHeaders is not saved when obtaining the report via save and getReport API calls.
 
Please let us know whether it fits your case.
Our team is looking forward to hearing from you.
 
Kind regards,
Illia

Please login or Register to Submit Answer