New

Just launched: Vueblocks, a brand-new search engine for Vue packages! Explore Vueblocks →

sloyakuza/laravel-security-headers

Adds security related headers to HTTP response.
13,851
Install
composer require sloyakuza/laravel-security-headers
Latest Version:v2.0.0
PHP:^7.4|^8.0
Laravel:6 – 10
License:MIT
Last Updated:Mar 4, 2023
Links: GitHub  ·  Packagist
Maintainer: SLOYakuza

laravel-security-headers

Security related headers to HTTP responses in Laravel

Software License Packagist Packagist Downloads

Installation

Install using composer

composer require sloyakuza/laravel-security-headers

Add service provider in config/app.php ( laravel version < 5.5 )

SLOYakuza\SecureHeaders\SecureHeadersServiceProvider::class,

Publish config file

php artisan vendor:publish --provider="SLOYakuza\SecureHeaders\SecureHeadersServiceProvider"

Add global middleware in app/Http/Kernel.php

\SLOYakuza\SecureHeaders\SecureHeadersMiddleware::class,

Set up config file config/secure-headers.php

Done!

Related Packages

bepsvpt/secure-headers

Add security related headers to HTTP response. The package includes Service Prov...

5,861,007 551
spatie/laravel-csp

Add CSP headers to the responses of a Laravel app

13,739,248 870
offline/laravel-csp

Add CSP headers to the responses of a Laravel app (Fork)

5,576 1

Version History

Version Released PHP Laravel License
v2.0.0 ^7.4|^8.0 ^6|^7|^8|^9|^10 MIT
v1.0.1 ^7.4|^8.0 ^6|^7|^8|^9 MIT
v1.0.0 ^7.4|^8.0 ^6|^7|^8|^9 MIT