From 924faa0f1bc13bf1ec5315c482b76c37c2ed3cd3 Mon Sep 17 00:00:00 2001 From: Sammy Teillet Date: Sun, 2 Apr 2023 16:14:21 +0200 Subject: [PATCH] feature: add a custom header --- src/forward-to-localhost.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/forward-to-localhost.ts b/src/forward-to-localhost.ts index 9e8bd6b..e059e1d 100644 --- a/src/forward-to-localhost.ts +++ b/src/forward-to-localhost.ts @@ -12,6 +12,9 @@ export const forwardWebhookToLocalhost = async ( method: "POST", url: `${baseUrl}${webhook.path}`, data: JSON.parse(webhook.body), + headers: { + "X-WS-Original-Headers": webhook.headers, + }, }; axios