diff --git a/composer.json b/composer.json index 0cfaf295..e4d3897c 100644 --- a/composer.json +++ b/composer.json @@ -23,6 +23,7 @@ "ext-mbstring": "*", "monolog/monolog": "^2.3", "spatie/ignition": "^1.0", + "spatie/flare-client-php": "^1.0.1", "symfony/console": "^5.0|^6.0", "symfony/var-dumper": "^5.0|^6.0", "illuminate/support": "^8.77|^9.0" diff --git a/config/flare.php b/config/flare.php index 825533e0..e5241be5 100644 --- a/config/flare.php +++ b/config/flare.php @@ -3,6 +3,7 @@ use Spatie\FlareClient\FlareMiddleware\AddGitInformation; use Spatie\FlareClient\FlareMiddleware\RemoveRequestIp; use Spatie\FlareClient\FlareMiddleware\CensorRequestBodyFields; +use Spatie\FlareClient\FlareMiddleware\CensorRequestHeaders; use Spatie\LaravelIgnition\FlareMiddleware\AddDumps; use Spatie\LaravelIgnition\FlareMiddleware\AddEnvironmentInformation; use Spatie\LaravelIgnition\FlareMiddleware\AddExceptionInformation; @@ -57,6 +58,11 @@ 'password', ], ], + CensorRequestHeaders::class => [ + 'headers' => [ + 'API-KEY' + ] + ] ], /*