Add Fruitcake CORS package and update CORS configuration to allow all methods, origins, and headers for improved API accessibility.

This commit is contained in:
F4ilji
2025-09-06 00:17:51 +05:00
parent 29daa1e3aa
commit 335784231a
4 changed files with 151 additions and 8 deletions
+5 -5
View File
@@ -4,17 +4,17 @@ return [
'paths' => ['*'],
'allowed_methods' => ['GET', 'POST', 'PUT', 'DELETE'],
'allowed_methods' => ['*'],
'allowed_origins' => explode(',', env('CORS_ALLOWED_ORIGINS', 'https://www.ntspi.ru')),
'allowed_origins' => ['*'],
'allowed_origins_patterns' => [],
'allowed_headers' => ['Content-Type', 'X-Requested-With', 'Authorization'],
'allowed_headers' => ['*'],
'exposed_headers' => [],
'max_age' => 3600,
'max_age' => 0,
'supports_credentials' => true,
'supports_credentials' => false,
];