Skip to content

Commit

Permalink
Merge pull request #217 from OpenWebhook/send-headers-to-localhost
Browse files Browse the repository at this point in the history
feature: add a custom header
  • Loading branch information
Samox authored Apr 3, 2023
2 parents e828afc + 924faa0 commit 91a6044
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 91a6044

Please sign in to comment.