l
This commit is contained in:
@@ -45,7 +45,7 @@ if ($_SERVER['REQUEST_METHOD'] === 'OPTIONS') {
|
|||||||
// ==========================================
|
// ==========================================
|
||||||
|
|
||||||
// Environment
|
// 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
|
define('DEBUG_MODE', true); // Enable debug temporarily to see errors
|
||||||
|
|
||||||
// N8N Webhooks
|
// N8N Webhooks
|
||||||
@@ -203,7 +203,9 @@ function sendToWebhook($data, $webhookUrl = null) {
|
|||||||
CURLOPT_HTTPHEADER => [
|
CURLOPT_HTTPHEADER => [
|
||||||
'Content-Type: application/json',
|
'Content-Type: application/json',
|
||||||
'Accept: 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_TIMEOUT => 30,
|
||||||
CURLOPT_CONNECTTIMEOUT => 10,
|
CURLOPT_CONNECTTIMEOUT => 10,
|
||||||
|
|||||||
Reference in New Issue
Block a user