Intégration reservations et mock lavage

This commit is contained in:
bastien
2026-07-03 19:01:49 +02:00
parent b2443b654c
commit 55a558b536
16 changed files with 346 additions and 5 deletions
+39
View File
@@ -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,
];