diff --git a/src/Appwrite/Platform/Workers/Webhooks.php b/src/Appwrite/Platform/Workers/Webhooks.php index 423f5bf5cf..889a1cb36c 100644 --- a/src/Appwrite/Platform/Workers/Webhooks.php +++ b/src/Appwrite/Platform/Workers/Webhooks.php @@ -99,7 +99,8 @@ class Webhooks extends Action 'X-' . APP_NAME . '-Webhook-Signature: ' . $signature, ] ); - + curl_setopt($ch, CURLOPT_MAXREDIRS, 5); + if (!$webhook->getAttribute('security', true)) { \curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, false); \curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);