Add Fruitcake CORS package and update CORS configuration to allow all methods, origins, and headers for improved API accessibility.
This commit is contained in:
+5
-5
@@ -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,
|
||||
];
|
||||
Reference in New Issue
Block a user