Skip to content

Commit

Permalink
feature: add a custom header
Browse files Browse the repository at this point in the history
  • Loading branch information
Samox committed Apr 3, 2023
1 parent e828afc commit 924faa0
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/forward-to-localhost.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 924faa0

Please sign in to comment.