Skip to content

HDVinnie/laravel-security-headers

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

laravel-security-headers

Security related headers to HTTP responses in Laravel

Software License Packagist Packagist Downloads

Installation

Install using composer

composer require hdvinnie/laravel-security-headers

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

HDVinnie\SecureHeaders\SecureHeadersServiceProvider::class,

Publish config file

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

Add global middleware in app/Http/Kernel.php

\HDVinnie\SecureHeaders\SecureHeadersMiddleware::class,

Set up config file config/secure-headers.php

Done!

About

Security related headers to HTTP responses in Laravel

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages