tecpresso/laravel-x-frame-options

Add X-Frame-Options Header for laravel

1.0.1 2018-06-21 07:05 UTC

This package is auto-updated.

Last update: 2024-10-26 15:54:57 UTC


README

Build Status Latest Stable Version Total Downloads License

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