update schema validator
This commit is contained in:
@@ -1,2 +1,22 @@
|
||||
<?php
|
||||
define('SITE_NAME', 'Tools');
|
||||
/**
|
||||
* Global API Headers Configuration
|
||||
*/
|
||||
|
||||
$API_HEADERS = [
|
||||
'Content-Type: application/json; charset=utf-8',
|
||||
'Access-Control-Allow-Origin: *',
|
||||
'Access-Control-Allow-Methods: GET, POST, OPTIONS',
|
||||
'Access-Control-Allow-Headers: Content-Type, Authorization',
|
||||
'X-Powered-By: SiliconPin Tools'
|
||||
];
|
||||
|
||||
/**
|
||||
* Apply headers helper
|
||||
*/
|
||||
function applyApiHeaders(array $headers)
|
||||
{
|
||||
foreach ($headers as $header) {
|
||||
header($header);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user