Looking to hire Laravel developers? Try LaraJobs

laravel-xss-middleware maintained by sneek

Description
Simple Laravel XSS middlware to strip all tags and encode all entities from a user
Last update
2017/10/08 20:59 (dev-master)
License
Links
Downloads
3 581

Comments
comments powered by Disqus

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,
        ],
    ....