Sneek / laravel-xss-middleware by CristianGiordano

Simple Laravel XSS middlware to strip all tags and encode all entities from a user
3,560
2
4
Package Data
Maintainer Username: CristianGiordano
Maintainer Contact: cristian@sneekdigital.co.uk (Cristian Giordano)
Package Create Date: 2017-08-14
Package Last Update: 2017-10-08
Language: PHP
License: GPL-3.0
Last Refreshed: 2024-04-18 03:02:43
Package Statistics
Total Downloads: 3,560
Monthly Downloads: 0
Daily Downloads: 0
Total Stars: 2
Total Watchers: 4
Total Forks: 0
Total Open Issues: 0

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