['api/*', 'sanctum/csrf-cookie', 'broadcasting/auth'], 'allowed_methods' => ['*'], 'allowed_origins' => array_filter(array_merge( [env('CUSTOMER_APP_URL')], explode(',', (string) env('EXTRA_CORS_ORIGINS', '')), )), 'allowed_origins_patterns' => [ '#^http://localhost:\d+$#', '#^http://127\.0\.0\.1:\d+$#', ], 'allowed_headers' => ['*'], 'exposed_headers' => [], 'max_age' => 0, 'supports_credentials' => true, ];