sloyakuza / laravel-security-headers
Adds security related headers to HTTP response.
Installs: 7 176
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 1
Open Issues: 1
Requires
- php: ^7.4|^8.0
- illuminate/support: ^6|^7|^8|^9|^10
Requires (Dev)
- ext-json: *
- ext-xdebug: *
- orchestra/testbench: ^3.1|^4.0|^5.0|^6.0|^7.0|^8.0
Suggests
- friendsofphp/php-cs-fixer: Coding style fixer
- phpstan/phpstan: Static analysis tool
- phpunit/phpunit: PHP unit testing framework
This package is auto-updated.
Last update: 2024-11-04 13:40:07 UTC
README
Security related headers to HTTP responses in Laravel
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!