# How to send data from front end react js to backend node js using router.post

**URL:** <https://forum.search-guard.com/t/how-to-send-data-from-front-end-react-js-to-backend-node-js-using-router-post/2504>\
**Category:** Search Guard\
**Created:** [May 8, 2024, 10:23pm UTC](https://forum.search-guard.com/t/how-to-send-data-from-front-end-react-js-to-backend-node-js-using-router-post/2504 "2024-05-08T22:23:13Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![sunil.jagtap](https://avatars.discourse-cdn.com/v4/letter/s/4491bb/32.png) [@sunil.jagtap](https://forum.search-guard.com/u/sunil.jagtap)\
**Post date:** [May 8, 2024, 10:23pm UTC](https://forum.search-guard.com/t/how-to-send-data-from-front-end-react-js-to-backend-node-js-using-router-post/2504/1 "2024-05-08T22:23:13Z")

</div>

If you think it is a bug report or you have a technical issue, please answer the following questions. For general questions, you can delete these questions.

**Elasticsearch version:** 7.17.20

**Server OS version:** MAC Pro

**Kibana version (if relevant):** 7.17.20

**Browser version (if relevant):** Chrome Version 124.0.6367.92 (Official Build) (arm64)

**Browser OS version (if relevant):** MAC Pro

**Describe the issue:**. In regards to [https://search-guard.com/writing-kibana-plugins-part-4/](https://search-guard.com/writing-kibana-plugins-part-4/)

Topic : Calling Elasticsearch in a Route Handler - How to send data from front end react js to backend node js using router.post ?  
i.e. How to pass the formdata object of values collected from Rendered application DOM (public/components/app.tsx) to Server side(server/routes/index.ts) as body of router method

**Steps to reproduce:**  
1.  
2.  
3.

**Expected behavior:**

**Provide configuration:**  
elasticsearch/config/elasticsearch.yml  
elasticsearch/plugins/search-guard-7/sgconfig/sg\_config.yml  
kibana/config/kibana.yml (if relevant)

**Provide logs:**  
Elasticsearch  
Kibana (if relevant)

**Screenshots (if relevant):**

**Errors in browser console (if relevant):**

**Additional data:**

---

<div class="post-metadata">

**Author:** ![marc](https://avatars.discourse-cdn.com/v4/letter/m/8dc957/32.png) [@marc](https://forum.search-guard.com/u/marc)\
**Post date:** [July 23, 2024, 11:16am UTC](https://forum.search-guard.com/t/how-to-send-data-from-front-end-react-js-to-backend-node-js-using-router-post/2504/4 "2024-07-23T11:16:41Z")

</div>

While this topic doesn’t seem to be specific to Search Guard, we may be able to help you. Please send us a note via the contact form so that we can go over the details of your project.

> **[Contact the Search Guard team - get in touch with us](https://search-guard.com/contacts/)**
>
> Any questions regarding Search Guard licensing or pricing? Do you need OEM licenses or want to partner with us? Please fill out the contact form and we will get back to you as soon as possible.
