Adding new hostname to api webhook controller.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user