Skip to content

Scheduling infrastructure for absolutely everyone.

fix: webhook fetch calls should be no-follow (#10336)

Alex van Andel43e3ef170a16
diff --git a/packages/features/webhooks/lib/sendPayload.ts b/packages/features/webhooks/lib/sendPayload.ts
index 814c8cdd7ec..03fe6586952 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,
+ }
+ : {}),
};
};