-
In node (express)+http-proxy-middleware I'm proxying well all the calls to /api to the postgrest server and all works well selecting like Do I need additional header configuration to make an rpc? const { createProxyMiddleware } = require('http-proxy-middleware');
app.use('/api', createProxyMiddleware({
target: "http://postgrest:3000/",
changeOrigin: true,
}) Headers
|
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
This seems to be a question about your node proxy, then? I don't think this is the right forum for that. |
Beta Was this translation helpful? Give feedback.
-
Hi @pvilas I think you need to declare /rpc also like
|
Beta Was this translation helpful? Give feedback.
You are totally right. I'm sorry for the inconvenience. Anyway, for the records,
express.text()
middleware would be after the proxy middleware in order to get a response form/rpc
.