PATCH method doesn't proxy request body
karladler opened this issue · 1 comments
karladler commented
It seems like proxying methods like PATCH having some payload in the body doesn't arrive at server.
Did I do something wrong or is it a bug?
Works totally fine for GET requests but PATCH fails.
const proxyTable = {
'proxy/api/': {
target: `${targeturl}`,
rewrite: path => path.replace(/\/proxy/, ''),
logs: true,
changeOrigin: true,
headers: {
Authorization: `Bearer ${token}`
},
secure: true,
events: {
error(err, req, res) {
log.error(err);
}
}
}
};
luxuze commented
It will not proxy json data.