more fixes

This commit is contained in:
2026-03-12 07:22:38 +01:00
parent 547215cbe8
commit 4f576ceb04
226 changed files with 14380 additions and 4453 deletions

34
config/cors.php Normal file
View File

@@ -0,0 +1,34 @@
<?php
return [
/*
|--------------------------------------------------------------------------
| Cross-Origin Resource Sharing (CORS) Configuration
|
| This file configures CORS for the application. Toggle CORS on/off using
| the `CP_ENABLE_CORS` environment variable. When disabled the `paths`
| array is empty and the CORS middleware will not apply to any routes.
|--------------------------------------------------------------------------
*/
'paths' => env('CP_ENABLE_CORS', true)
? [
'api/*',
'sanctum/csrf-cookie',
]
: [],
'allowed_methods' => ['*'],
'allowed_origins' => ['*'],
'allowed_origins_patterns' => [],
'allowed_headers' => ['*'],
'exposed_headers' => [],
'max_age' => 0,
'supports_credentials' => false,
];