laravel-xss-middleware maintained by sneek
Description
Simple Laravel XSS middlware to strip all tags and encode all entities from a user
Authors
Last update
2017/10/08 20:59
(dev-master)
License
Downloads
3 581
Tags
XSS Middleware
A simple middleware for use in Laravel projects.
Installation
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,
],
....