From b568a283ac04b84a55a9ea747f250f6f8a476775 Mon Sep 17 00:00:00 2001 From: dan612 Date: Sun, 22 Mar 2026 17:09:31 -0400 Subject: [PATCH] Adding new hostname to api webhook controller. --- src/Controller/ApiWebhookController.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/Controller/ApiWebhookController.php b/src/Controller/ApiWebhookController.php index 24b7bde..a1579e3 100644 --- a/src/Controller/ApiWebhookController.php +++ b/src/Controller/ApiWebhookController.php @@ -34,8 +34,7 @@ class ApiWebhookController extends ControllerBase implements ControllerInterface $allowed_origins = [ 'http://127.0.0.1:8088', 'http://localhost:8088', - 'https://yourproduction-site.com', - 'https://another-client-site.io' + 'https://code.danchadwick.dev', ]; $origin = $_SERVER['HTTP_ORIGIN'] ?? ''; // Check if the requester is in our whitelist