Update
This commit is contained in:
31
config/cpad.php
Normal file
31
config/cpad.php
Normal file
@@ -0,0 +1,31 @@
|
||||
<?php
|
||||
|
||||
return array (
|
||||
'debug' => false,
|
||||
'cache_enabled' => true,
|
||||
'log_level' => 'warning',
|
||||
'features' =>
|
||||
array (
|
||||
0 => 'core',
|
||||
1 => 'security',
|
||||
),
|
||||
'security_level' => 'maximum',
|
||||
'backup_enabled' => true,
|
||||
'admin_path' => '/admin',
|
||||
'security' => array(
|
||||
'cross_origin' => array(
|
||||
'enabled' => env('CPAD_CROSS_ORIGIN_ENABLED', true),
|
||||
'embedder_policy' => env('CPAD_COEP', 'require-corp'),
|
||||
'opener_policy' => env('CPAD_COOP', 'same-origin'),
|
||||
'resource_policy' => env('CPAD_CORP', 'same-origin'),
|
||||
),
|
||||
'cors' => array(
|
||||
'enabled' => env('CPAD_CORS_ENABLED', true),
|
||||
'allowed_origins' => array_filter(explode(',', env('CPAD_CORS_ALLOWED_ORIGINS', '*'))),
|
||||
'allowed_methods' => array('GET', 'POST', 'PUT', 'PATCH', 'DELETE', 'OPTIONS'),
|
||||
'allowed_headers' => array('Content-Type', 'Authorization', 'X-API-Key', 'X-API-Version'),
|
||||
'exposed_headers' => array('X-Total-Count', 'X-Page-Count'),
|
||||
'max_age' => env('CPAD_CORS_MAX_AGE', 86400),
|
||||
),
|
||||
),
|
||||
);
|
||||
Reference in New Issue
Block a user