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,