From 5905b39e0f25b112b01002406079924f8fffc126 Mon Sep 17 00:00:00 2001 From: Ihor_Zhekov Date: Thu, 19 Feb 2026 13:13:23 +0100 Subject: [PATCH] j --- Profice WebSite/scripts/add/send.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Profice WebSite/scripts/add/send.php b/Profice WebSite/scripts/add/send.php index f1c129b..5a70fd2 100644 --- a/Profice WebSite/scripts/add/send.php +++ b/Profice WebSite/scripts/add/send.php @@ -198,7 +198,7 @@ function sendToWebhook($data, $webhookUrl = null) { curl_setopt_array($ch, [ CURLOPT_URL => $url, CURLOPT_RETURNTRANSFER => true, - CURLOPT_POST => true, + CURLOPT_POST => true,curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false); CURLOPT_POSTFIELDS => $jsonData, CURLOPT_HTTPHEADER => [ 'Content-Type: application/json', @@ -742,6 +742,7 @@ if ($requestType === 'test_webhook') { curl_setopt($ch, CURLOPT_POSTFIELDS, json_encode($testData)); curl_setopt($ch, CURLOPT_HTTPHEADER, ['Content-Type: application/json']); curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false); + curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, false); curl_setopt($ch, CURLOPT_TIMEOUT, 10); $rawResponse = curl_exec($ch);