Skip to content

Commit 39a227d

Browse files
committed
Forward only Content-Type header
1 parent 38868e9 commit 39a227d

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/server/routes/webhookProxy.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,9 @@ router.post("/:webhookId", async (req, res) => {
88
try {
99
await axios.post(webhookUrl, webhookData, {
1010
params: req.query,
11-
headers: req.headers,
11+
headers: {
12+
"Content-Type": req.headers["Content-Type"],
13+
},
1214
});
1315
res.status(200).send("Webhook sent successfully");
1416
return;

0 commit comments

Comments
 (0)