Looking to hire Laravel developers? Try LaraJobs

laravel-security-headers maintained by sloyakuza

Description
Adds security related headers to HTTP response.
Author
Last update
2023/03/04 10:50 (dev-main)
License
Downloads
13 455

Comments
comments powered by Disqus

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!