Adding new hostname to api webhook controller.

This commit is contained in:
dan612
2026-03-22 17:09:31 -04:00
parent ffc04634ff
commit b568a283ac

View File

@@ -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