Adding new hostname to api webhook controller.
This commit is contained in:
@@ -34,8 +34,7 @@ class ApiWebhookController extends ControllerBase implements ControllerInterface
|
|||||||
$allowed_origins = [
|
$allowed_origins = [
|
||||||
'http://127.0.0.1:8088',
|
'http://127.0.0.1:8088',
|
||||||
'http://localhost:8088',
|
'http://localhost:8088',
|
||||||
'https://yourproduction-site.com',
|
'https://code.danchadwick.dev',
|
||||||
'https://another-client-site.io'
|
|
||||||
];
|
];
|
||||||
$origin = $_SERVER['HTTP_ORIGIN'] ?? '';
|
$origin = $_SERVER['HTTP_ORIGIN'] ?? '';
|
||||||
// Check if the requester is in our whitelist
|
// Check if the requester is in our whitelist
|
||||||
|
|||||||
Reference in New Issue
Block a user