tecpresso / laravel-x-frame-options
Add X-Frame-Options Header for laravel
1.0.1
2018-06-21 07:05 UTC
Requires
- php: ^7.0
- illuminate/support: ~5.4.0|~5.5.0|~5.6.0
Requires (Dev)
- orchestra/testbench: ~3.4.0|~3.5.0|~3.6.0
- phpunit/phpunit: ^6.5 || 7.1
This package is auto-updated.
Last update: 2024-10-26 15:54:57 UTC
README
This library gives "X-Frame-Options" to Laravel.
I have created this to avoid OWASP warnings
Install
composer require tecpresso/laravel-x-frame-options
This library corresponds to auto discovery
If you using laravel 5.4. you have to add the provider in the providers array (config/app.php)
Configuration
Run command
php artisan vendor:publish
and select the Provider.
Then. generated config file in confog/x-frame-options
.
You can edit rules for each path.
Usage
The library enabled automatically.
Testing
composer test
Lisence
MIT