From 0309454f00d908b9d3850628092227d196516d6b Mon Sep 17 00:00:00 2001 From: Ihor_Zhekov Date: Thu, 19 Feb 2026 12:59:14 +0100 Subject: [PATCH] l --- Profice WebSite/scripts/add/send.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Profice WebSite/scripts/add/send.php b/Profice WebSite/scripts/add/send.php index 73d48d3..ebf5554 100644 --- a/Profice WebSite/scripts/add/send.php +++ b/Profice WebSite/scripts/add/send.php @@ -45,7 +45,7 @@ if ($_SERVER['REQUEST_METHOD'] === 'OPTIONS') { // ========================================== // Environment -define('USE_PRODUCTION', true); // Use production webhook for live server +define('USE_PRODUCTION', false); // Use test webhook temporarily to debug define('DEBUG_MODE', true); // Enable debug temporarily to see errors // N8N Webhooks @@ -203,7 +203,9 @@ function sendToWebhook($data, $webhookUrl = null) { CURLOPT_HTTPHEADER => [ 'Content-Type: application/json', 'Accept: application/json', - 'User-Agent: Profice-Web-API/2.0' + 'User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36', + 'Origin: https://staging.profice.de', + 'Referer: https://staging.profice.de/' ], CURLOPT_TIMEOUT => 30, CURLOPT_CONNECTTIMEOUT => 10,