Intégration reservations et mock lavage
This commit is contained in:
@@ -0,0 +1,39 @@
|
||||
<?php
|
||||
|
||||
$allowedOrigins = env('CORS_ALLOWED_ORIGINS');
|
||||
|
||||
return [
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Cross-Origin Resource Sharing (CORS) Configuration
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| Requis pour Flutter Web (Chrome) et tout client navigateur.
|
||||
| Sans ce fichier, le middleware HandleCors ne s'applique pas.
|
||||
|
|
||||
*/
|
||||
|
||||
'paths' => ['api/*', 'sanctum/csrf-cookie'],
|
||||
|
||||
'allowed_methods' => ['*'],
|
||||
|
||||
'allowed_origins' => $allowedOrigins !== null && $allowedOrigins !== ''
|
||||
? array_values(array_filter(array_map('trim', explode(',', $allowedOrigins))))
|
||||
: ['*'],
|
||||
|
||||
'allowed_origins_patterns' => [
|
||||
'#^https?://localhost(:\d+)?$#',
|
||||
'#^https?://127\.0\.0\.1(:\d+)?$#',
|
||||
'#^https?://\[::1\](:\d+)?$#',
|
||||
],
|
||||
|
||||
'allowed_headers' => ['*'],
|
||||
|
||||
'exposed_headers' => [],
|
||||
|
||||
'max_age' => 86400,
|
||||
|
||||
'supports_credentials' => false,
|
||||
|
||||
];
|
||||
Reference in New Issue
Block a user