diff --git a/config/cors.php b/config/cors.php index 673d1f2..d5b7d82 100644 --- a/config/cors.php +++ b/config/cors.php @@ -14,22 +14,17 @@ | To learn more: https://developer.mozilla.org/en-US/docs/Web/HTTP/CORS | */ - - 'paths' => ['api/*', 'sanctum/csrf-cookie'], - + + 'paths' => ['api/*', 'sanctum/csrf-cookie'], 'allowed_methods' => ['*'], - - 'allowed_origins' => ['https://cche-ch.org'], - + 'allowed_origins' => [ + 'http://cche-ch.org', + 'https://cche-ch.org', + 'localhost', + ], 'allowed_origins_patterns' => [], - 'allowed_headers' => ['*'], - - 'exposed_headers' => [], - + 'exposed_headers' => ['*'], // Modification 'max_age' => 0, - - 'supports_credentials' => false, - - -]; + 'supports_credentials' => true, +]; \ No newline at end of file