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);