Add ValidateSignature middleware for ignore params (#5942)

* Add ValidateSignature middleware for ignore params

* Comment out query parameters by default

* Remove leading slash

* Update Kernel ValidateSignature middleware path
This commit is contained in:
Stephen Rees-Carter
2022-08-16 01:19:56 +10:00
committed by GitHub
parent 4135d58345
commit dbced6ac8c
2 changed files with 23 additions and 1 deletions

View File

@@ -0,0 +1,22 @@
<?php
namespace App\Http\Middleware;
use Illuminate\Routing\Middleware\ValidateSignature as Middleware;
class ValidateSignature extends Middleware
{
/**
* The names of the parameters that should be ignored.
*
* @var array<int, string>
*/
protected $ignore = [
//'utm_campaign',
//'utm_source',
//'utm_medium',
//'utm_content',
//'utm_term',
//'fbclid',
];
}