From d2dfa76db7abed44c99ec44d071ae8e58c76323d Mon Sep 17 00:00:00 2001 From: AntonyDevs Date: Mon, 16 Dec 2024 11:21:04 -0500 Subject: [PATCH] fix cors error in zapier webhook --- packages/tools/src/zapier-webhook/index.js | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/packages/tools/src/zapier-webhook/index.js b/packages/tools/src/zapier-webhook/index.js index 1a34525..744a7ff 100644 --- a/packages/tools/src/zapier-webhook/index.js +++ b/packages/tools/src/zapier-webhook/index.js @@ -62,10 +62,7 @@ export class ZapierWebhook extends Tool { try { const jsonData = await this.httpClient .post(this.url, { - json: input, - headers: { - 'Content-Type': 'application/json', - }, + body: JSON.stringify(input), }) .json();