From 43e3ef170a160383a53a5bdd9dfa0dd93384be81 Mon Sep 17 00:00:00 2001 From: Alex van Andel Date: Mon, 24 Jul 2023 15:36:45 +0100 Subject: [PATCH] fix: webhook fetch calls should be no-follow (#10336) --- packages/features/webhooks/lib/sendPayload.ts | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/packages/features/webhooks/lib/sendPayload.ts b/packages/features/webhooks/lib/sendPayload.ts index 814c8cdd7e..03fe658695 100644 --- a/packages/features/webhooks/lib/sendPayload.ts +++ b/packages/features/webhooks/lib/sendPayload.ts @@ -160,6 +160,7 @@ const _sendPayload = async ( "Content-Type": contentType, "X-Cal-Signature-256": secretSignature, }, + redirect: "manual", body, }); @@ -168,7 +169,11 @@ const _sendPayload = async ( return { ok: response.ok, status: response.status, - message: text, + ...(text + ? { + message: text, + } + : {}), }; };