Downloads
Stars
Version
A simple middleware for use in Laravel projects.
Clone the repository
composer require sneek/laravel-xss-middleware
Add to the Http kernel App\Http\Kernel
/**
* The application's route middleware groups.
*
* @var array
*/
protected $middlewareGroups = [
'web' => [
...
\Sneek\Http\Middleware\XSSProtection::class,
],
....