Here is my story
I have webapp which is using Nuxt.js, and use Elastic-search as database.
So the request part will be: post https://www.webapp.com/api/article/search with raw ES query parameters json, then I use poxy module to forward https://www.webapp.com/api to http://localhost:9200
my question is that: can I change the query parameters before proxy forward to ES and after request send by browser ?
The reason is that I want to hide real query parameters in browser and format the parameters in nuxt.js proxy aspect before send to ES.
Myaybe "http-proxy-middleware" "onProxyReq" can help, I don't know how to use it.