Skip to content

Commit

Permalink
Add support for censoring headers
Browse files Browse the repository at this point in the history
  • Loading branch information
rubenvanassche committed Feb 4, 2022
1 parent dcaf694 commit 6825022
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
1 change: 1 addition & 0 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
"ext-mbstring": "*",
"monolog/monolog": "^2.3",
"spatie/ignition": "^1.0",
"spatie/flare-client-php": "^1.0.1",

This comment has been minimized.

Copy link
@PaolaRuby

PaolaRuby Feb 18, 2022

Contributor

@rubenvanassche is this necessary??
Why not put it on "require-dev"?

This comment has been minimized.

Copy link
@freekmurze

freekmurze Feb 18, 2022

Member

Because some of the code in this package relies on flare-client-php for instance the Report class.

This comment has been minimized.

Copy link
@PaolaRuby

PaolaRuby Feb 18, 2022

Contributor

thanks for answering

"symfony/console": "^5.0|^6.0",
"symfony/var-dumper": "^5.0|^6.0",
"illuminate/support": "^8.77|^9.0"
Expand Down
6 changes: 6 additions & 0 deletions config/flare.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -57,6 +58,11 @@
'password',
],
],
CensorRequestHeaders::class => [
'headers' => [
'API-KEY'
]
]
],

/*
Expand Down

0 comments on commit 6825022

Please sign in to comment.